Is next example is enough to serv simple index.html page?

void setupServer()
{
        auto router = new URLRouter;
        // add other routes here
        router.get("*", serveStaticFiles("public/"));

        auto settings = new HTTPServerSettings;
        listenHTTP(settings, router);
}

After it's run I open localhost:8080 but browser say that can't connect to the page.

Reply via email to