Skip to main content

Routes

Key route groups in apps/web/src/app:

  • / dashboard
  • /posts, /posts/[id]
  • /company-posts, /company-posts/[id]
  • /admin
  • /settings
  • (auth)/login, (auth)/signup
  • /api/linkedin-webhook (Next route)
    • Forwards POST payload to n8n workflow (https://n8n.variantai.io/webhook/participant-rag) using undici Agent with permissive TLS for self-signed certs.
    • See apps/web/src/app/api/linkedin-webhook/route.js.

Middleware

  • apps/web/middleware.js enforces redirects:
    • Auth routes: /login, /signup redirect to / when authenticated.
    • Protected routes: /, /posts, /company-posts, /settings, /admin redirect to /login when unauthenticated.