sync: Create empty file for nginx gzip-static module
This commit is contained in:
parent
24a1e86c19
commit
f4c3f1e15e
2 changed files with 24 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue