Skip to content

Instantly share code, notes, and snippets.

@LazyFatArrow LazyFatArrow/index.ts
Last active Jan 4, 2019

What would you like to do?
import * as express from 'express'
import * as bodyParser from 'body-parser'
import MoviesApi from './api/MoviesApi'
const app = express()
const moviesApi = new MoviesApi()
app.use(bodyParser.json())'/movies', (req: express.Request, res: express.Response) => {
app.get('/movies', (req: express.Request, res: express.Response) => {
app.listen(5000, () => {
console.log('server started on port 5000')
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.