Skip to content

Commit 8a661b4

Browse files
committed
eh
1 parent a32c210 commit 8a661b4

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

darrt/resources.js renamed to darrt/resources/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ const respond = (args) => {
9292
* @param {string} filter - Name of filter.
9393
*/
9494
const routerCallback = (act, type, filter) => {
95-
9695
/**
9796
* @param {object} req - Express Request object.
9897
* @param {object} res - Express Response object.

index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
// root of the service API
44
// 2020-02-01 : mamund
55
*****************************************/
6-
7-
var express = require('express');
8-
var app = express();
9-
var cors = require('cors');
106

11-
var resources = require('./darrt/resources');
12-
var port = process.env.PORT || 8181;
7+
const express = require('express')
8+
const app = express()
9+
const cors = require('cors')
10+
11+
const resources = require('./darrt/resources')
12+
const port = process.env.PORT || 8181
1313

1414
// support calls from JS in browser
15-
app.use(cors());
16-
app.options('*', cors());
15+
app.use(cors())
16+
app.options('*', cors())
1717

1818
// point to exposed resources for this API
19-
app.use('/', resources);
19+
app.use('/', resources)
2020

2121
// start listening for requests
22-
app.listen(port, () => console.log(`listening on port http://localhost:${port}!`));
22+
app.listen(port, () => console.log(`listening on port http://localhost:${port}!`))

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"start": "node index",
1313
"dev": "nodemon index",
1414
"publish": "surge .",
15+
"#help": "npm run $(echo \"$(npm run)\" | percol)",
1516
"help": "npm run $(echo \"$(npm run)\" | percol)"
1617
},
1718
"repository": {

0 commit comments

Comments
 (0)