Created
October 6, 2020 22:10
-
-
Save jonataspinto/20dd3de97a3ddf82d8e4627dc9dd7146 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 express = require('express'); | |
const routes = require('./routes'); | |
const app = express(); | |
app.use(express.json()) | |
.use(routes) | |
.get('*', (request, response) => { | |
response.json({message: "invalid route"}) | |
}) | |
module.exports = app; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment