Push middleware basics

This commit is contained in:
2019-05-19 13:08:23 +05:30
parent 8e650dbf1f
commit eaac6a03d1

View File

@@ -6,7 +6,15 @@ app = express()
app.use(bodyParser.urlencoded({extended:false}))
app.use(bodyParser.json())
app.post('/filepath')
//Attempt to upload a file
app.put('/files/upload',(req,res)=>{
console.log("Upload attempted")
})
//Get file details
app.post('/files/ls',(req,res)=>{
console.log("Request attempted")
})
app.get('/',express.static('static'));