add validation middleware and improve REST API structure

This commit is contained in:
StarAppeal
2025-09-06 03:47:44 +02:00
parent b3381e04e3
commit 3a939c2b36
24 changed files with 4044 additions and 264 deletions
+8 -2
View File
@@ -7,7 +7,9 @@
"start-local": "tsc && cross-env NODE_ENV=development node dist/index.js",
"clean": "rimraf dist",
"build": "npm run clean & tsc",
"test": "echo \"Error: no test specified, please add them later\""
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"keywords": [],
"author": "",
@@ -24,6 +26,7 @@
"cors": "^2.8.5",
"dotenv": "^16.4.4",
"express": "5.0.0",
"express-rate-limit": "^8.1.0",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.8.2",
"openweather-api-node": "^3.1.5",
@@ -34,7 +37,10 @@
},
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/supertest": "^6.0.3",
"cross-env": "^7.0.3",
"prettier": "^3.2.5"
"prettier": "^3.2.5",
"supertest": "^7.1.4",
"vitest": "^2.1.9"
}
}