@wbg-mde/server
Version:
MDE communication channel with Socket IO and express.
19 lines • 691 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
// Assign router to the express.Router() instance
const router = express_1.Router();
// The / here corresponds to the route that the WelcomeController
// is mounted on in the server.ts file.
// In this case it's /welcome
router.get('/', (req, res) => {
res.send('dashboard');
});
router.get('/:id', (req, res) => {
let { id } = req.params;
// Greet the given name
res.send(`dashboard - , ${id}`);
});
// Export the express.Router() instance to be used by server.ts
exports.DashboardRouter = router;
//# sourceMappingURL=dashboad.router.js.map