Skip to content

Instantly share code, notes, and snippets.

@grant grant/index.js
Last active Aug 27, 2019

Embed
What would you like to do?
Express Routing: Router
const express = require('express');
// Create an Express object and routes (in order)
const app = express();
app.use('/users/:id', getUser);
app.use('/users/', getAllUsers);
app.use(getDefault);
// Set our GCF handler to our Express app.
exports.users = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.