Computing for good
Atlanta Food Consortium/Feature Docs

Routes

Overview of all application routes and their access requirements.

Overview

The Atlanta Food Consortium platform is organized into role-specific routes. Each major feature area is protected by Next.js middleware that checks the active session role before rendering.

Route map

RouteRole requiredDescription
/adminADMINPlatform management - approve nonprofits, view analytics
/supplierSUPPLIERManage product listings and supplier metrics
/nonprofitAuth + nonprofitIdBrowse and claim available food products
/usersADMINUser management table with delete capability
/discussionAny authenticatedCommunity discussion threads
/announcementsAny authenticatedPlatform announcements - ADMIN can create
/onboarding/supplierUnauthenticatedSupplier registration flow (3 steps)
/onboarding/nonprofitUnauthenticatedNonprofit registration flow (4 steps)

Authentication

All protected routes redirect to the sign-in page if no session exists. Role checks happen server-side in each route's page.tsx using getServerSession.

Middleware: src/middleware.ts handles top-level redirects for unauthenticated users.

Detailed documentation

Select a route below for full prop, hook, and component details: