Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Framework/Backend/http/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
directives: {
/* eslint-disable */
defaultSrc: ["'self'", "data:", hostname + ':*'],
imgSrc: ["'self'", "data:", "blob:"],
scriptSrc: ["'self'", ...(allow ? ["'unsafe-eval'"] : [])],
styleSrc: ["'self'", "'unsafe-inline'"],
connectSrc: ["'self'", 'http://' + hostname + ':' + port, 'https://' + hostname, 'wss://' + hostname, 'ws://' + hostname + ':' + port],
Expand Down Expand Up @@ -301,7 +302,7 @@
* Adds POST route using express router, the path will be prefix with "/api"
* By default verifies JWT token unless public options is provided
* @param {string} path - path that the callback will be bound to
* @param {function} callbacks - method that handles request and response: function(req, res);

Check warning on line 305 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Tests on macos-latest

Syntax error in type: function

Check warning on line 305 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Tests & coverage on ubuntu-latest

Syntax error in type: function

Check warning on line 305 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Test on windows-latest

Syntax error in type: function
* token should be passed as req.query.token;
* more on req: https://expressjs.com/en/api.html#req
* more on res: https://expressjs.com/en/api.html#res
Expand All @@ -316,7 +317,7 @@
* Adds PUT route using express router, the path will be prefix with "/api"
* By default verifies JWT token unless public options is provided
* @param {string} path - path that the callback will be bound to
* @param {function} callbacks - method that handles request and response: function(req, res);

Check warning on line 320 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Tests on macos-latest

Syntax error in type: function

Check warning on line 320 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Tests & coverage on ubuntu-latest

Syntax error in type: function

Check warning on line 320 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Test on windows-latest

Syntax error in type: function
* token should be passed as req.query.token;
* more on req: https://expressjs.com/en/api.html#req
* more on res: https://expressjs.com/en/api.html#res
Expand All @@ -331,7 +332,7 @@
* Adds PATCH route using express router, the path will be prefix with "/api"
* By default verifies JWT token unless public options is provided
* @param {string} path - path that the callback will be bound to
* @param {function} callbacks - method that handles request and response: function(req, res);

Check warning on line 335 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Tests on macos-latest

Syntax error in type: function

Check warning on line 335 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Tests & coverage on ubuntu-latest

Syntax error in type: function

Check warning on line 335 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Test on windows-latest

Syntax error in type: function
* token should be passed as req.query.token;
* more on req: https://expressjs.com/en/api.html#req
* more on res: https://expressjs.com/en/api.html#res
Expand All @@ -346,7 +347,7 @@
* Adds DELETE route using express router, the path will be prefix with "/api"
* By default verifies JWT token unless public options is provided
* @param {string} path - path that the callback will be bound to
* @param {function} callbacks - method that handles request and response: function(req, res);

Check warning on line 350 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Tests on macos-latest

Syntax error in type: function

Check warning on line 350 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Tests & coverage on ubuntu-latest

Syntax error in type: function

Check warning on line 350 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Test on windows-latest

Syntax error in type: function
* token should be passed as req.query.token;
* more on req: https://expressjs.com/en/api.html#req
* more on res: https://expressjs.com/en/api.html#res
Expand Down Expand Up @@ -506,7 +507,7 @@
* @todo use promises or generators to call it asynchronously!
* @param {object} req - HTTP request
* @param {object} res - HTTP response
* @param {function} next - passes control to next matching route

Check warning on line 510 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Tests on macos-latest

Syntax error in type: function

Check warning on line 510 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Tests & coverage on ubuntu-latest

Syntax error in type: function

Check warning on line 510 in Framework/Backend/http/server.js

View workflow job for this annotation

GitHub Actions / Test on windows-latest

Syntax error in type: function
*/
jwtVerify(req, res, next) {
try {
Expand Down
Loading