mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
dev day #81
This commit is contained in:
@@ -249,10 +249,12 @@ func main() {
|
||||
// Expose cached JSON files for the frontend at /cache/*
|
||||
r.Static("/cache", "./cache")
|
||||
|
||||
// Serve static assets and uploads
|
||||
// Map /dist to ./static to expose files like /dist/img/logo-club-empty.svg
|
||||
r.Static("/dist", "./static")
|
||||
r.Static("/uploads", config.AppConfig.UploadDir)
|
||||
// Serve static assets and uploads
|
||||
// Map /dist to ./static to expose files like /dist/img/logo-club-empty.svg
|
||||
r.Static("/dist", "./static")
|
||||
r.Static("/uploads", config.AppConfig.UploadDir)
|
||||
// Serve premium asset pack (CSS/JS) for cloned pro pages
|
||||
r.Static("/premium-assets", "./pro")
|
||||
|
||||
// Ensure gallery flat files exist at startup (best effort)
|
||||
_ = services.RegenerateFlatGalleryFiles()
|
||||
|
||||
Reference in New Issue
Block a user