All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pistache-server.main-api-server.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
{{>licenseInfo}}
{{#operations}}

#include "pistache/endpoint.h"
#include "pistache/http.h"
#include "pistache/router.h"
#include "{{classname}}Impl.h"

using namespace {{apiNamespace}};

int main() {
    Pistache::Address addr(Pistache::Ipv4::any(), Pistache::Port(8080));

    {{classname}}Impl server(addr);
    server.init(2);
    server.start();

    server.shutdown();
}

{{/operations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy