Skip to content

Commit

Permalink
fix: 重置密钥 API 应使用 POST
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Sep 15, 2024
1 parent 7061cf0 commit b2453f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ export class Server {
res.status(200).json(cluster.getJson(true, false));
});

this.app.get('/93AtHome/dashboard/user/cluster/reset_secret', (req: Request, res: Response) => {
this.app.post('/93AtHome/dashboard/user/cluster/reset_secret', (req: Request, res: Response) => {
const token = req.cookies.token;
if (!token) {
res.status(401).send(); // 未登录
Expand Down

0 comments on commit b2453f7

Please sign in to comment.