Add base code

This commit is contained in:
2019-05-19 12:21:40 +05:30
parent bb8df55ee6
commit 8e650dbf1f
4 changed files with 408 additions and 1 deletions

20
index.js Normal file
View File

@@ -0,0 +1,20 @@
const express = require('express')
const bodyParser = require('body-parser')
const port = 8080;
app = express()
app.use(bodyParser.urlencoded({extended:false}))
app.use(bodyParser.json())
app.post('/filepath')
app.get('/',express.static('static'));
app.all('*',(req,res)=>{
res.status(404).json({'error':404});
})
app.listen(port,()=>{
console.log(`Listening:${port}`)
})