Merge branch 'main' of https://github.com/classroomio/classroomio into feat/release-v2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { Handle } from '@sveltejs/kit';
|
||||
import { validateUser } from '$lib/utils/services/middlewares';
|
||||
|
||||
const PUBLIC_ROUTES = [
|
||||
const PUBLIC_API_ROUTES = [
|
||||
'/api/completion',
|
||||
'student_prove_payment',
|
||||
'teacher_student_buycourse',
|
||||
@@ -11,7 +11,7 @@ const PUBLIC_ROUTES = [
|
||||
];
|
||||
|
||||
function isPublicRoute(pathname: string) {
|
||||
return PUBLIC_ROUTES.some((route) => pathname.includes(route));
|
||||
return PUBLIC_API_ROUTES.some((route) => pathname.includes(route));
|
||||
}
|
||||
|
||||
export const handle: Handle = async ({ event, resolve }) => {
|
||||
|
||||
Reference in New Issue
Block a user