Last active
November 13, 2018 20:42
-
-
Save abhiaiyer91/ebb468b46a99289897787520eead9b44 to your computer and use it in GitHub Desktop.
This file contains 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
import * as express from "express"; | |
import * as bodyParser from "body-parser"; | |
const server = express(); | |
server.use(bodyParser.json()); | |
// User APIs | |
server.post("/create/user", () => {}); | |
server.get("/user/:id", () => {}); | |
// Post APIs | |
server.post("/create/draft", () => {}); | |
server.post("/post/publish/:id", () => {}); | |
server.get("/post/:id", () => {}); | |
server.get("/posts", () => {}); | |
server.get("/drafts", () => {}); | |
server.listen(1337, () => { | |
console.log("Listening on http://localhost:1337"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment