Created
April 29, 2016 15:08
-
-
Save ajcrites/4290a86d3d4eb8f95ebd4159a69293c8 to your computer and use it in GitHub Desktop.
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
const express = require("express"); | |
const userRouter = express.Router(); | |
const groupRouter = express.Router(); | |
const app = express(); | |
userRouter.get("/user", (req, res) => res.end("user")); | |
groupRouter.get("/group", (req, res) => res.end("group")); | |
app.use("/api", userRouter); | |
app.use("/api", groupRouter); | |
app.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment