http only works, and added redirect middleware

This commit is contained in:
Milo Schwartz
2024-10-27 23:36:04 -04:00
parent 4a5bd7e18a
commit 5c80f026bc
4 changed files with 29 additions and 20 deletions

View File

@@ -28,11 +28,10 @@ export default async function Page(props: {
if (res && res.data.data.orgs) {
orgs = res.data.data.orgs;
}
} catch (e) {
console.error(e);
}
if (!orgs.length) {
redirect("/setup");
}