This commit is contained in:
2026-02-04 20:29:42 -06:00
parent e37c64fb1d
commit 515ddb24d6
18 changed files with 921 additions and 19 deletions

View File

@@ -1,17 +1,22 @@
import express from 'express'
// routes
import { matchRouter } from './routes/matches.route.js'
const app = express()
const port = process.env.PORT || 8081
app.use(express.json())
app.get('/',(req,res)=>{
app.get('/',(_,res)=>{
res.send('Hello from express server!')
})
app.use('/matches', matchRouter)
app.listen(port, ()=>{
console.log(`Listening on port ${port}`)
console.info(`Listening on port ${port}`)
})