api_v2.js
This file
Path
examples/multi-router/controllers/api_v2.js
15 lines · 272 bytes · JavaScript
Last changed by
Merge tag '4.17.3'Douglas Christopher Wilsonbefore adoption318fd4b
History of this fileTake it
The walk stopped after 200 commits: lines older than 8a387d3 point at it.
Merge tag '4.17.3'Douglas Christopher Wilsonbefore adoption318fd4b
lines 1–2why, one step back1'use strict'2deps: array-flatten@2.0.0Douglas Christopher Wilsonbefore adoption8a387d3
lines 3–15why, one step back3var express = require('../../..');45var apiv2 = express.Router();67apiv2.get('/', function(req, res) {8 res.send('Hello from APIv2 root route.');9});1011apiv2.get('/users', function(req, res) {12 res.send('List of APIv2 users.');13});1415module.exports = apiv2;