Routes

main.go serves generated assets and templates, public pages, account and authentication endpoints, user/profile endpoints, server/channel/message endpoints, friend and conversation endpoints, administration, invites, attachments, and two WebSocket paths.

The route table is intentionally centralized. A route with a path parameter must match the handler’s parsing convention, including Request.PathValue for the registered pattern routes and explicit path splitting for domain routers.