mirror of
https://github.com/Floriansylvain/CineAllo.git
synced 2026-08-19 19:53:16 +02:00
🎉 - First commit!
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import express from 'express'
|
||||
import logger from 'morgan'
|
||||
import * as dotenv from 'dotenv'
|
||||
import { indexRouter } from './routes/index.js'
|
||||
import { usersRouter } from './routes/users.js'
|
||||
|
||||
dotenv.config()
|
||||
const app = express()
|
||||
const port = process.env.CINEALLO_PORT
|
||||
|
||||
app.use(logger('dev'))
|
||||
app.use(express.json())
|
||||
app.use(express.urlencoded({ extended: false }))
|
||||
|
||||
app.use('/', indexRouter)
|
||||
app.use('/users', usersRouter)
|
||||
|
||||
app.listen(port, () => console.log(`Listening on port ${port}`))
|
||||
Reference in New Issue
Block a user