16 lines
430 B
D
16 lines
430 B
D
import calendarwebapp;
|
|
import vibe.vibe;
|
|
|
|
shared static this()
|
|
{
|
|
auto router = new URLRouter;
|
|
router.registerWebInterface(new CalendarWebapp);
|
|
|
|
auto settings = new HTTPServerSettings;
|
|
settings.port = 8080;
|
|
settings.bindAddresses = ["::1", "127.0.0.1"];
|
|
settings.sessionStore = new MemorySessionStore;
|
|
listenHTTP(settings, router);
|
|
|
|
logInfo("Please open http://127.0.0.1:8080/ in your browser.");
|
|
}
|