Template
configurado back para estar expuesto en el mismo endpoint que el front
This commit is contained in:
1 parent
5488cab691
commit
a6e3564779
2 files changed
+9
-4
No files matched your search
+3
-3
@@ -9,15 +9,15 @@ import authRoutes from './routes/auth'
|
||||
const bootstrap = async () => {
|
||||
await mongo.connect()
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
app.get('/api', (req, res) => {
|
||||
res.status(200).send('Hello, world!')
|
||||
})
|
||||
|
||||
app.get('/healthz', (req, res) => {
|
||||
app.get('/api/healthz', (req, res) => {
|
||||
res.status(204).end()
|
||||
})
|
||||
|
||||
app.use('/auth', authRoutes)
|
||||
app.use('/api/auth', authRoutes)
|
||||
// add rest of routes here...
|
||||
|
||||
app.listen(PORT, () => {
|
||||
|
||||
Reference in new issue
Block a user