Code files

This commit is contained in:
Akhil
2017-07-31 11:33:31 +05:30
parent 073a63ebdd
commit b9ae409ec0
801 changed files with 17535 additions and 0 deletions
@@ -0,0 +1,5 @@
function content (opts, c = 20) {
return --c ? content(opts, c) : opts.ohoh
}
module.exports = content
@@ -0,0 +1,7 @@
const express = require('express')
const routes = require('./routes')
const app = express()
app.use(routes)
app.listen(3000)
@@ -0,0 +1,15 @@
{
"name": "app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.15.2"
}
}
@@ -0,0 +1,9 @@
const content = require('./content')
const {Router} = require('express')
const router = new Router()
router.get('/', (req, res) => {
res.send(content())
})
module.exports = router