You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
575 B
JavaScript
21 lines
575 B
JavaScript
"use strict";
|
|
|
|
var router = require("express-promise-router")();
|
|
|
|
router.get("/", function (req, res) {
|
|
res.render("layout");
|
|
});
|
|
|
|
router.get("/node/:uuid", function (req, res) {
|
|
res.json({ uuid: req.params.uuid });
|
|
});
|
|
|
|
router.get("/test1", function (req, res) {
|
|
res.send("test ONE <a href='/test2'>go to 2 instead</a> <a href='/test2' target='_blank'>or in a new window</a>");
|
|
});
|
|
|
|
router.get("/test2", function (req, res) {
|
|
res.send("test TWO <a href='/test1'>go to 1 instead</a> <a href='/test1' target='_blank'>or in a new window</a>");
|
|
});
|
|
|
|
module.exports = router; |