完善基础框架,对原有APILoader进行接口响应的错误处理

This commit is contained in:
tone
2024-09-25 01:21:23 +08:00
parent a9c67cd013
commit 7acdfc2c68
12 changed files with 398 additions and 0 deletions

24
package.json Normal file
View File

@@ -0,0 +1,24 @@
{
"name": "nodeserver",
"version": "1.0.0",
"description": "由typescript编写的node.js通用后端服务框架",
"main": "index.js",
"scripts": {
"start": "ts-node -r tsconfig-paths/register src/index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "tone",
"license": "MIT",
"dependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/node": "^22.6.1",
"cors": "^2.8.5",
"express": "^4.21.0",
"typescript": "^5.6.2"
},
"devDependencies": {
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0"
}
}