Skip to content

Commit

Permalink
🚚 Move public images to /img and serve them
Browse files Browse the repository at this point in the history
  • Loading branch information
0uep committed Sep 16, 2022
1 parent 63e1468 commit eca45df
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func newRouter(g *garcon.Garcon, wwwDir string) http.Handler {
r.Get("/favicon.ico", ws.ServeFile("favicon.ico", "image/x-icon"))
r.Get("/js/*", ws.ServeDir("text/javascript; charset=utf-8"))
r.Get("/assets/*", ws.ServeAssets())
r.Get("/img/*", ws.ServeImages())

// public routes: not protected by login cookie
r.Post("/token/refresh/{timeout}", requestRefreshToken)
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes

0 comments on commit eca45df

Please sign in to comment.