ens-proxy/app.ts

17 lines
325 B
TypeScript
Raw Normal View History

2022-08-16 17:30:40 +02:00
import express from 'express'
import cors from 'cors'
const app = express()
const port = 3000
import indexRouter from './routes/index'
app.use(express.json())
app.use(cors())
app.use('/', indexRouter)
app.listen(port, () => {
console.log(`Price Request App listening at http://localhost:${port}`)
})
export default app