sync: Create empty file for nginx gzip-static module

This commit is contained in:
nemunaire 2022-11-21 12:02:36 +01:00
parent 24a1e86c19
commit f4c3f1e15e
2 changed files with 24 additions and 1 deletions

View file

@ -101,6 +101,7 @@ func declareStaticRoutes(router *gin.RouterGroup, cfg *settings.Settings, baseUR
})
router.GET("/files/*_", func(c *gin.Context) {
// TODO: handle .gz file here
http.ServeFile(c.Writer, c.Request, path.Join(fic.FilesDir, strings.TrimPrefix(c.Request.URL.Path, path.Join(baseURL, "files"))))
})
router.GET("/submissions/*_", func(c *gin.Context) {