routes

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MountCrudBlogRoutes added in v1.0.0

func MountCrudBlogRoutes(api fiber.Router, pool *pgxpool.Pool, aclSvc *acl.Service)

MountCrudBlogRoutes registers blog CRUD on an existing /api group (middleware already applied).

func MountCrudUserRoutes added in v1.0.0

func MountCrudUserRoutes(api fiber.Router, pool *pgxpool.Pool, aclSvc *acl.Service)

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

func SetupAuthRoutes(app *fiber.App, authHandlers *auth.Handlers, jwtConfig jwtware.Config)

SetupAuthRoutes registers the /auth group: public routes, then JWT middleware, then protected routes.

func SetupCoreRoutes added in v1.0.0

func SetupCoreRoutes(app *fiber.App, pool *pgxpool.Pool)

SetupCoreRoutes registers /, /health, /monitor, and /static.

func SetupWebRoutes added in v1.0.0

func SetupWebRoutes(app *fiber.App, pool *pgxpool.Pool)

SetupWebRoutes registers routes for web pages (HTML/templates). Add page routes here as they are implemented.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL