Documentation
¶
Index ¶
- func RegisterStaticRoutes(router *gin.Engine, cfg *config.ConfigManager)
- func ResolveThemeFile(cfg *config.ConfigManager, parts ...string) (string, error)
- func ServeAdminPage(c *gin.Context, cfg *config.ConfigManager)
- func ServeIndex(c *gin.Context, cfg *config.ConfigManager)
- func ServeSetup(c *gin.Context, cfg *config.ConfigManager)
- func ServeThemeFile(c *gin.Context, cfg *config.ConfigManager, parts ...string)
- func ServeUserPage(c *gin.Context, cfg *config.ConfigManager, pageName string)
- func SetEmbeddedFS(efs embed.FS)
- func ThemePath(cfg *config.ConfigManager, parts ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStaticRoutes ¶
func RegisterStaticRoutes(router *gin.Engine, cfg *config.ConfigManager)
RegisterStaticRoutes registers public-facing static routes (assets, css, js, components)
func ResolveThemeFile ¶ added in v1.8.2
func ResolveThemeFile(cfg *config.ConfigManager, parts ...string) (string, error)
ResolveThemeFile returns the concrete filesystem path for a theme file, applying fallbacks.
func ServeAdminPage ¶
func ServeAdminPage(c *gin.Context, cfg *config.ConfigManager)
ServeAdminPage serves the admin index page
func ServeIndex ¶
func ServeIndex(c *gin.Context, cfg *config.ConfigManager)
ServeIndex serves the main index page with basic template replacements.
func ServeSetup ¶
func ServeSetup(c *gin.Context, cfg *config.ConfigManager)
ServeSetup serves the setup page with template replacements.
func ServeThemeFile ¶ added in v1.10.0
func ServeThemeFile(c *gin.Context, cfg *config.ConfigManager, parts ...string)
ServeThemeFile serves a theme file, falling back to embedded FS if filesystem path not found
func ServeUserPage ¶
func ServeUserPage(c *gin.Context, cfg *config.ConfigManager, pageName string)
ServeUserPage serves user-facing static pages (login/register/dashboard/etc.)
func SetEmbeddedFS ¶ added in v1.10.0
SetEmbeddedFS sets the embedded filesystem for static assets
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.