GEG Nachweis

This commit is contained in:
Moritz Utcke
2025-02-19 23:22:39 +11:00
parent 69566f1c74
commit faa8f2c673
38 changed files with 581 additions and 210 deletions

View File

@@ -49,6 +49,15 @@ if (ausweisart === Enums.Ausweisart.VerbrauchsausweisWohnen) {
uid
}
})
} else if (ausweisart === Enums.Ausweisart.GEGNachweisWohnen) {
ausweis = await caller["geg-nachweis-wohnen"]._uid.GET.fetch(undefined, {
headers: {
Authorization: `Bearer ${Astro.cookies.get(API_ACCESS_TOKEN_COOKIE_NAME)?.value}`
},
params: {
uid
}
})
} else {
return Astro.redirect("/404")
}
@@ -80,8 +89,6 @@ const user = await caller.user.self.GET.fetch(undefined, {
aufnahme.ausweisart = "VerbrauchsausweisWohnen"
if (!ausweis || !user) {
return Astro.redirect("/404");
}