I hereby claim:
- I am janpot on github.
- I am janpotoms (https://keybase.io/janpotoms) on keybase.
- I have a public key ASAPc1WWSCpc63Ayz5HMy9M6C2nvarUbwMJiKxbRvDEhBgo
To claim this, I am signing this object:
var reportRoute = function (req, res) { | |
// Validate input parameters | |
req.assert("userId").notEmpty().isInt(); | |
req.assert("url").notEmpty().isUrl(); | |
req.assert("reportId").notEmpty().isInt(); | |
// Validate input | |
var errors = req.validationErrors(); | |
// Handle errors |
$ docker build . | |
Uploading context 51.71 kB | |
Uploading context | |
Step 0 : FROM woorank/base | |
---> 91ab7b695a0c | |
Step 1 : ADD . /strongops-docker | |
---> 50bb3ccb9170 | |
Step 2 : RUN cd /strongops-docker && npm install | |
---> Running in b5ae9b045121 | |
npm WARN package.json [email protected] No repository field. |
var userRouter = express.Router(), | |
projectsRouter = express.Router(); | |
userRouter.use('/:userId', function (req, res, next) { | |
req.user = fetchAndValidate(req.param('userId')); | |
next(); | |
}); | |
projectsRouter.use('/', function (req, res, next) { | |
res.send(fetchProjects(req.user)); |
var db = null, | |
server = null; | |
initialise() | |
.then(function (_db) { | |
db = _db | |
return createServer(db); | |
}) | |
.then(function (_server) { |
var Promise = require('bluebird'), | |
_request = require('request'), | |
extend = require('extend'); | |
function merge(obj1, obj2) { | |
// the resulting object will have all (deep) properties of obj1 and obj2 | |
// obj2 has precendence over obj1 | |
return extend(true, {}, obj1, obj2); | |
} |
nsdnfkj |
044a5adea6b7b697b7a043767a95c4204ea0fb9759a4b52c2f9b6a5fff98bfdb027935fe0b778ecd7fa472d767fe8781163b021251817a3692086cff08a50d9f26 |
import { serve, Response } from 'some-http-lib' | |
serve(3000, async ({ request }) => { | |
const body = JSON.stringify({ hello: 'world' }); | |
return new Response(body, { | |
status: 200, | |
headers: new Headers({ | |
'content-type': 'application/json' | |
}) | |
}); |
hello world |
I hereby claim:
To claim this, I am signing this object: