Routeur
$ npm install --save react-router-dom
Enthusiastic Elephant
$ npm install --save react-router-dom
// 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;
const express = require('express');
const router = express.Router();
router.get('/', function (req, res) {
res.send('get page');
})
module.exports = router;
Destitnaion in routing table(Is the destintion there or not.)
Longest match.
AD Lowest wins.
Depends on the rotingprotocol metric(RIP - hops & OSTF - cost)