Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require('express')
- const app = express()
- const stringifedJson = JSON.stringify({a:1})
- app.get('/cached', (req,res)=>{
- res.setHeader('Content-Type', 'application/json');
- res.end(stringifedJson)
- })
- app.listen(3000, ()=>console.log('Server started'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement