feat: add static file serving and theme safelist
- Serve static files from web/static directory - Add theme class safelist to Tailwind config for dynamic theming support - Regenerate CSS with updated configuration
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgx/v5/pgtype"
|
||||
"github.com/labstack/echo-jwt/v4"
|
||||
echojwt "github.com/labstack/echo-jwt/v4"
|
||||
"github.com/labstack/echo/v4"
|
||||
echomiddleware "github.com/labstack/echo/v4/middleware"
|
||||
)
|
||||
@@ -134,6 +134,7 @@ func RegisterRoutes(cfg *Config) *handlers.Handler {
|
||||
registerWebSocketRoutes(cfg)
|
||||
registerFrontendRoutes(cfg)
|
||||
registerDocumentationRoutes(cfg)
|
||||
e.Static("/static", "web/static")
|
||||
|
||||
// Create scanner handler for scanner routes and progress routes
|
||||
scannerHandler := handlers.SetupRoutes(protected, cfg.Queries, cfg.ConnManager, cfg.QueueProcessor)
|
||||
|
||||
Reference in New Issue
Block a user