Answers for "+ Router"

0

router

// wiki.js - Wiki route module.

var express = require('express');
var router = express.Router();

// Home page route.
router.get('/', function (req, res) {
  res.send('Wiki home page');
})

// About page route.
router.get('/about', function (req, res) {
  res.send('About this wiki');
})

module.exports = router;
Posted by: Guest on May-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language