import {WebServer} from "typescript-mvc-web-api";

class Server extends WebServer {

    public execute(): void {
        /*
            /api/odata/*

            /api/sparql/*

                let routes = [
                    new Route('/', { controller: 'Home', action: 'index' }),
                    new Route('/', { controller: 'Home', action: 'index' }),
                ];
        */

        let url = this.context.settings.protocol
            + "://" + this.context.settings.hostname
            + ":" + this.context.settings.port
            + this.context.settings.root;

        this.context.logger.log("Server running at", url);

        this.context.framework.startWebServer(this.context.settings.port, this.context.settings.hostname);
    }
}

let server = new Server();
server.initialize();

import {Bootstrapper} from "typescript-mvc-web-api";

class Server extends Bootstrapper {

    public execute(): void {
        /*
            /api/odata/*

            /api/sparql/*

                let routes = [
                    new Route('/', { controller: 'Home', action: 'index' }),
                    new Route('/', { controller: 'Home', action: 'index' }),
                ];
        */

        let url = this.context.settings.protocol
            + "://" + this.context.settings.hostname
            + ":" + this.context.settings.port
            + this.context.settings.root;

        this.context.logger.log("Server running at", url);

        this.context.framework.startWebServer(this.context.settings.port, this.context.settings.hostname);
    }
}

let server = new Server();
server.initialize();

--- 
+++ 
@@ -1,6 +1,6 @@
-import {Bootstrapper} from "typescript-mvc-web-api";
+import {WebServer} from "typescript-mvc-web-api";
 
-class Server extends Bootstrapper {
+class Server extends WebServer {
 
     public execute(): void {
         /*
Use WebServer instead of Bootstrapper
