Skip to content

Commit

Permalink
update: add base url
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Brasileiro authored and Fabio Brasileiro committed Sep 16, 2024
1 parent f05d088 commit e2c2b1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"start:dev": "tsx watch src/server.ts",
"start": "node build/server.js",
"start": "node build/server.cjs",
"build": "tsup src --out-dir build",
"lint:format": "npx @biomejs/biome format --write ./",
"lint": "npx @biomejs/biome lint --write ./",
Expand Down
5 changes: 5 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ app.use(express.json())

app.use(cors())

app.get('/', (_req, res) => {
res.send('Api next payment funcionando')
})

// Defina as rotas para produtos e pagamentos
app.use('/api/products', productRoutes)
app.use('/api/payments', paymentRoutes)
app.use('/api', authRoutes) // Adicione '/api' como prefixo para as rotas de autenticação


export default app

0 comments on commit e2c2b1a

Please sign in to comment.