mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
Added a lot of different things
This commit is contained in:
@@ -130,6 +130,8 @@ func (s *Server) Start() {
|
||||
|
||||
srv.Use(recover.New())
|
||||
|
||||
srv.Use("assets", static(&views.StaticFS))
|
||||
|
||||
// TODO: Dont cache static assets, bc storage gets huge
|
||||
// INFO: Maybe fiber does this already?
|
||||
if s.Config.Debug {
|
||||
@@ -153,8 +155,6 @@ func (s *Server) Start() {
|
||||
}))
|
||||
}
|
||||
|
||||
srv.Use(STATIC_PREFIX, static(&views.StaticFS))
|
||||
|
||||
srv.Get("/:year?", controllers.GetYear(s.kgpz))
|
||||
srv.Get("/:year/:issue/:page?", controllers.GetIssue(s.kgpz))
|
||||
srv.Get("/:year/:issue/beilage/:page?", controllers.GetIssue(s.kgpz))
|
||||
|
||||
Reference in New Issue
Block a user