feat: add extensive test suite

This commit is contained in:
2026-08-30 11:33:53 +07:00 Unverified
parent 061cce00dc
commit 8359c7272e
131 changed files with 8717 additions and 2200 deletions
+8
View File
@@ -0,0 +1,8 @@
type AuthHandler = (request: Request) => Response | Promise<Response>;
export function createAuthHandlers<TAuth>(
toHandler: (auth: TAuth) => { GET: AuthHandler; POST: AuthHandler },
auth: TAuth,
) {
return toHandler(auth);
}