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.
16 lines
499 B
CoffeeScript
16 lines
499 B
CoffeeScript
router = require("express-promise-router")()
|
|
|
|
router.get "/", (req, res) ->
|
|
res.render "layout"
|
|
|
|
router.get "/node/:uuid", (req, res) ->
|
|
res.json {"uuid": req.params.uuid}
|
|
|
|
router.get "/test1", (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", (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
|