Created
September 5, 2019 04:25
-
-
Save kavinduchamiran/4a6b2f65243e35eb541bb72e47626ed6 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
const app = express(); | |
app.use( | |
bodyParser.urlencoded({ | |
extended: false | |
}) | |
); | |
app.use(bodyParser.json()); | |
app.use(cors()); | |
const users = require('./routes/api/users'); | |
app.use("/api/users", users); | |
app.get('/', (req, res) => { | |
res.send('ClouDL server up and running.'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment