forked from SpoonX/aurelia-orm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
24 lines (22 loc) · 934 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// all default gulp tasks are located in the ./node_modules/spoonx-tools/build-plugin/tasks directory
// gulp default configuration is in files in ./node_modules/spoonx-tools/build-plugin directory
require('require-dir')('node_modules/spoonx-tools/build-plugin/tasks');
// 'gulp help' lists the available default tasks
// you can add additional tasks here
// the express server app can be imported and routes added
var app = require('./node_modules/spoonx-tools/build-plugin/tasks/server').app;
// default: all routes, all methods
app.all('*', function(req, res) {
res.send({
path : req.path,
query : req.query,
body : req.body,
method : req.method,
contentType : req.header('content-type'),
Authorization: req.header('Authorization'),
originalUrl : req.originalUrl,
access_token : req.body.access_token,
refresh_token: req.body.refresh_token,
id: 667
});
});