Add admin routes to Fastify backend

add-admin-route.SKILLskillsetup L20
OsmarZM/Sofia-Assistente-Bitrix24
What it does

Add Fastify admin route to Sofia backend with step-by-step guidance

Best for

Rapidly adding backend endpoints to Sofia without manual routing boilerplate

Inputs
  • · route endpoint path
  • · handler function logic
Outputs
  • · Fastify route file in apps/api/src/routes/admin/
Requires
  • · Fastify framework
  • · Sofia backend structure
Preconditions

Sofia backend initialized; Fastify server running

Failure modes
  • · route collision (suggest rename)
  • · missing middleware (auto-inject)
Trust signals
  • · step-by-step guidance
  • · backend path convention
  • · middleware auto-wiring