Verified Commit 9a020853 authored by Jae's avatar Jae
Browse files

Remove endpoint without cache

parent 2b1bf892
......@@ -220,27 +220,6 @@ func main() {
})
}))
r.GET("/gallery/disablecache", func(c *gin.Context) {
var images []string
files, err := ioutil.ReadDir("./static/images")
if err != nil {
log.Fatal(err)
}
for _, file := range files {
if file.Name() != ".gitkeep" {
images = append(images, file.Name())
}
}
c.HTML(http.StatusOK, "home/gallery.tmpl", gin.H{
"title": "Gallery",
"images": images,
"path": c.FullPath(),
})
})
// Regular announcements list
r.GET("/announcements", func(c *gin.Context) {
var posts []string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment