mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-04-18 01:17:01 +02:00
fix: rename endpoint method to uppercase
This commit is contained in:
parent
19bff9a39c
commit
2192ac97c3
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user