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() {
    Net::Address addr(Net::Ipv4::any(), Net::Port(8080));

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

    server.shutdown();
}

{{/operations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy