Created
November 7, 2017 15:25
-
-
Save dgolant/fa9ba33b275708c967363853507ad0db 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 BodyParser = require(‘body - parser’); | |
const Celebrate = require(‘celebrate’); | |
const { Joi } = Celebrate; | |
const app = express(); // use whatever name you like, I tend to default to app | |
app.use(BodyParser.json()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment