Refactored students

This commit is contained in:
Kevin FEDYNA
2025-01-27 13:11:13 +01:00
parent 4ff76fdf6f
commit e88045c952
13 changed files with 187 additions and 126 deletions
+2 -2
View File
@@ -6,12 +6,12 @@ import {
export const handler: MiddlewareHandler<AuthenticatedState>[] = [
/**
* Check if user is authenticated and add session to context accordingly.
* Get all available pages for current user.
* @param request The HTTP incomming request.
* @param context The Fresh context object with custom `AuthenticatedState`.
* @returns The response from the next middleware.
*/
async function checkAuthentication(
async function getAllAvailablePages(
request: Request,
context: FreshContext<AuthenticatedState>,
): Promise<Response> {