This website requires JavaScript.
Explore
Help
Register
Sign In
kubbo
/
vless-api
Watch
1
Star
0
Fork
0
You've already forked vless-api
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
628a6fee8067bf505a56044d53887a30dd9eee68
vless-api
/
api
/
addClient.js
8 lines
116 B
JavaScript
Raw
Normal View
History
Unescape
Escape
feat(api): 实现 API 路由自动加载并优化路由处理 - 新增 api/example.js 文件作为示例 POST API - 在 app.js 中添加(bodyParser) 中间件 - 实现 loadAPIRoutes 函数自动加载 API 路由 - 更新 JWT 中间件配置,保护 /login 路由 - 优化路由定义,使用箭头函数
2025-02-24 17:46:27 +08:00
module
.
exports
=
(
ctx
)
=>
{
refactor(api): 重命名示例 API 文件并简化代码 - 将 api/example.js 重命名为 api/addClient.js - 删除多余的空行和注释
2025-02-25 17:53:36 +08:00
feat(api): 实现 API 路由自动加载并优化路由处理 - 新增 api/example.js 文件作为示例 POST API - 在 app.js 中添加(bodyParser) 中间件 - 实现 loadAPIRoutes 函数自动加载 API 路由 - 更新 JWT 中间件配置,保护 /login 路由 - 优化路由定义,使用箭头函数
2025-02-24 17:46:27 +08:00
ctx
.
body
=
{
message
:
'Example POST API'
,
data
:
ctx
.
request
.
body
}
;
}
;
Reference in New Issue
Copy Permalink