fix: rename endpoint method to uppercase

This commit is contained in:
leovoon 2022-07-18 16:04:13 +08:00
parent 19bff9a39c
commit 2192ac97c3

View File

@ -188,7 +188,7 @@ export class Auth {
}; };
} }
get: RequestHandler = async (event: RequestEvent): Promise<any> => { GET: RequestHandler = async (event: RequestEvent): Promise<any> => {
const { url } = event; const { url } = event;
if (url.pathname === this.getPath("csrf")) { if (url.pathname === this.getPath("csrf")) {
@ -205,7 +205,7 @@ export class Auth {
return await this.handleEndpoint(event); return await this.handleEndpoint(event);
}; };
post: RequestHandler = async (event: RequestEvent) => { POST: RequestHandler = async (event: RequestEvent) => {
return await this.handleEndpoint(event); return await this.handleEndpoint(event);
}; };