This commit is contained in:
Leifer Mendez
2022-08-10 21:07:28 +02:00
commit 980cb3d144
380 changed files with 2080 additions and 0 deletions

11
src/app.ts Normal file
View File

@@ -0,0 +1,11 @@
import "dotenv/config"
import express from "express"
import cors from "cors"
import routes from "./infrastructure/router"
const port = process.env.PORT || 3001
const app = express()
app.use(cors())
app.use(express.json())
app.use(`/`,routes)
app.listen(port, () => console.log(`Ready...${port}`))