Upload index.js

parent 217e1814
const express = require('express')
const bodyParser = require('body-parser')
const cors = require('cors')
var Main = require('./routes/Main')
var app = express()
app.use(bodyParser.json({limit: '50mb'}));
app.use(bodyParser.urlencoded({limit: '50mb', extended: true}));
app.use(cors({origin:'*'}))
app.listen(3500,()=>console.log('Server started at : 3500'))
app.use('/Main',Main)
app.use(express.static('public'))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment