Mega recruitment pipeline overhaul

This commit is contained in:
2025-12-03 13:37:03 -05:00
parent c537ef9b60
commit b8f18c060e
13 changed files with 445 additions and 55 deletions

View File

@@ -74,7 +74,7 @@ export enum ApplicationStatus {
const addr = import.meta.env.VITE_APIHOST;
export async function loadApplication(id: number | string): Promise<ApplicationFull | null> {
const res = await fetch(`${addr}/application/${id}`)
const res = await fetch(`${addr}/application/${id}`, { credentials: 'include' })
if (res.status === 204) return null
if (!res.ok) throw new Error('Failed to load application')
const json = await res.json()