On Wednesday, 30 September 2020 at 11:23:59 UTC, seany wrote:

        auto router = new URLRouter;
        router.post("/archive", &savedata);
        router.get("/archive", &savedata);

        auto settings = new HTTPServerSettings;
        settings.port = port;
        settings.bindAddresses = ["::1", "0.0.0.0"];
        listenHTTP(settings, router);

If you loop this section it should listen to each port. This is just a setup loop, it wouldn't actually be wasteful once it is running.

(I think, I don't really know vibe super well)

Reply via email to