Skip to content

Instantly share code, notes, and snippets.

@ahume
Last active November 29, 2017 00:53
Show Gist options
  • Save ahume/4825df80f7dd8b32223e691dfc99042d to your computer and use it in GitHub Desktop.
Save ahume/4825df80f7dd8b32223e691dfc99042d to your computer and use it in GitHub Desktop.
const router = require('gcframe-router');
function helloWorld (req, res) {
return res.send(`Hello ${req.params.name});
}
module.exports = {
helloWorld: router('GET', '/:name', helloWorld);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment