Skip to content

Commit 78c27d0

Browse files
author
kadraman
committed
Refactoring to single JWT middleware
1 parent 862d2f9 commit 78c27d0

19 files changed

Lines changed: 3068 additions & 182 deletions

config/default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"App": {
33
"name": "InsecureRestAPI",
44
"version": "1.0",
5-
"description": "InsecureRestAPI - An insecure NodeJS/Express/MongoDB REST API.",
5+
"description": "InsecureRestAPI - An insecure NodeJS/Express/MongoDB REST API for educational purposes. [View API Schema (openapi.json)](/docs/openapi.json)",
66
"port": 5000,
77
"dbConfig": {
88
"host": "127.0.0.1",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "iwa-api",
33
"version": "1.0.0",
4-
"description": "IWA-API-Node is an insecure Node/Express REST API for use in Fortify demonstrations",
4+
"description": "An insecure NodeJS/Express/MongoDB REST API for educational purposes.",
55
"main": "index.ts",
66
"scripts": {
77
"build": "cross-env NODE_ENV=production npx tsc && cross-env NODE_ENV=production ts-node src/configs/swagger.config.ts && cp src/configs/swagger_output.json ./dist/configs",
88
"start": "cross-env NODE_ENV=production node dist/index.js",
99
"dev": "ts-node-dev --respawn --transpile-only src/index.ts",
1010
"test": "echo \"Error: no test specified\" && exit 1",
11-
"swagger": "ts-node src/configs/swagger.config.ts"
11+
"swagger": "cross-env ts-node src/configs/swagger.config.ts && cross-env cp src/configs/swagger_output.json ./public/docs/openapi.json"
1212
},
1313
"keywords": [],
1414
"author": {

0 commit comments

Comments
 (0)