User endpoint done

This commit is contained in:
2022-05-30 16:03:16 -03:00
parent 7e08e5a5b5
commit 57622a34d8
4 changed files with 80 additions and 1 deletions

View File

@@ -3,8 +3,13 @@ const server = express()
const port = 3000
server.use(express.json())
const index = require('./routes/index.js')
server.use("/", index)
const user = require('./routes/user.js')
server.use("/user", user)
server.listen(port)
console.log("Listening in the port ", port)