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();

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();

Use WebServer instead of Bootstrapper
Use WebServer instead of Bootstrapper
