Last active
May 4, 2018 20:27
-
-
Save pajtai/952bc6833613d27b89074d8ddc6b4492 to your computer and use it in GitHub Desktop.
A minimal express controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const express = require('express'); | |
module.exports = () => { | |
const router = express.Router(); | |
router.get('/', (req, res) => { | |
res.json([]); | |
}); | |
return router; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment