Documentation
¶
Index ¶
- func MountCrudBlogRoutes(api fiber.Router, pool *pgxpool.Pool, aclSvc *acl.Service)
- func MountCrudUserRoutes(api fiber.Router, pool *pgxpool.Pool, aclSvc *acl.Service)
- func RegisterAll(app *fiber.App, pool *pgxpool.Pool, userRepo *repositories.UserRepository, ...)
- func SetupAdminRoutes(app *fiber.App, pool *pgxpool.Pool, userRepo *repositories.UserRepository, ...)
- func SetupAuthRoutes(app *fiber.App, authHandlers *auth.Handlers, jwtConfig jwtware.Config)
- func SetupCoreRoutes(app *fiber.App, pool *pgxpool.Pool)
- func SetupWebRoutes(app *fiber.App, pool *pgxpool.Pool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountCrudBlogRoutes ¶ added in v1.0.0
MountCrudBlogRoutes registers blog CRUD on an existing /api group (middleware already applied).
func MountCrudUserRoutes ¶ added in v1.0.0
MountCrudUserRoutes registers user CRUD on an existing /api group (middleware already applied).
func RegisterAll ¶ added in v1.0.0
func RegisterAll(app *fiber.App, pool *pgxpool.Pool, userRepo *repositories.UserRepository, jwtSecret string)
RegisterAll registers all route setup functions (core, web, auth, vendor, CRUD, optional admin).
func SetupAdminRoutes ¶ added in v1.0.0
func SetupAdminRoutes(app *fiber.App, pool *pgxpool.Pool, userRepo *repositories.UserRepository, jwtCfg jwtware.Config, aclRepo *repositories.ACLRepository, aclSvc *acl.Service)
SetupAdminRoutes registers /admin static files and /admin/api (when panel enabled and pool set).
func SetupAuthRoutes ¶
SetupAuthRoutes registers the /auth group: public routes, then JWT middleware, then protected routes.
func SetupCoreRoutes ¶ added in v1.0.0
SetupCoreRoutes registers /, /health, /monitor, and /static.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.