mirror of
https://github.com/oceanprotocol/ens-proxy.git
synced 2024-11-15 01:35:14 +01:00
17 lines
325 B
TypeScript
17 lines
325 B
TypeScript
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
|