Skip to content

Instantly share code, notes, and snippets.

@pajtai
Last active May 4, 2018 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pajtai/952bc6833613d27b89074d8ddc6b4492 to your computer and use it in GitHub Desktop.
Save pajtai/952bc6833613d27b89074d8ddc6b4492 to your computer and use it in GitHub Desktop.
A minimal express controller
'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