mirror of
				https://github.com/Dan6erbond/sk-auth.git
				synced 2025-10-26 10:22:56 +01: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; | ||||
| 
 | ||||
|     if (url.pathname === this.getPath("csrf")) { | ||||
| @ -205,7 +205,7 @@ export class Auth { | ||||
|     return await this.handleEndpoint(event); | ||||
|   }; | ||||
| 
 | ||||
|   post: RequestHandler = async (event: RequestEvent) => { | ||||
|   POST: RequestHandler = async (event: RequestEvent) => { | ||||
|     return await this.handleEndpoint(event); | ||||
|   }; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user