Skip to content
Myr

api_v1.js

This file

Path

examples/multi-router/controllers/api_v1.js

15 lines · 272 bytes · JavaScript

Last changed by

Merge tag '4.17.3'Douglas Christopher Wilsonbefore adoption318fd4b

History of this file

Take it

Merge tag '4.17.3'Douglas Christopher Wilsonbefore adoption318fd4b

lines 1–2why, one step back
1'use strict'
2

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

lines 3–15why, one step back
3var express = require('../../..');
45var apiv1 = express.Router();67apiv1.get('/', function(req, res) {8 res.send('Hello from APIv1 root route.');9});1011apiv1.get('/users', function(req, res) {12 res.send('List of APIv1 users.');13});1415module.exports = apiv1;