mirror of
https://github.com/cheveguerra/api-whatsapp-ts.git
synced 2026-04-19 12:19:25 +00:00
first
This commit is contained in:
11
src/app.ts
Normal file
11
src/app.ts
Normal 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}`))
|
||||
Reference in New Issue
Block a user