How to use the @vertx/web.Router function in @vertx/web

To help you get started, we’ve selected a few @vertx/web examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github reactiverse / es4x / examples / typescript / dist / index.js View on Github external
"use strict";
/// 
Object.defineProperty(exports, "__esModule", { value: true });
const web_1 = require("@vertx/web");
const routes_1 = require("./routes");
const app = web_1.Router.router(vertx);
console.log(typeof routes_1.home);
app.route('/').handler(routes_1.home);
vertx.createHttpServer()
    .requestHandler(app)
    .listen(8080);
//# sourceMappingURL=index.js.map

@vertx/web

Generated Eclipse Vert.x bindings for 'vertx-web'

Apache-2.0
Latest version published 7 months ago

Package Health Score

64 / 100
Full package analysis

Similar packages