Fix thumbnails directory path

This commit is contained in:
Javi Fontan 2021-07-15 22:49:43 +02:00
parent ee7da183e6
commit 0c0f22bde0
No known key found for this signature in database
GPG Key ID: CC378C088E01FF94
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
version: "3.9"
services:
glslsandbox:
image: glslsandbox
image: ghcr.io/jfontan/glsl-sandbox:latest
volumes:
- ./data:/data
ports:

View File

@ -89,7 +89,7 @@ func (s *Server) routes() {
s.echo.POST("/e", s.saveHandler)
s.echo.GET("/item/:id", s.itemHandler)
s.echo.Static("/thumbs", "./data/thumbs")
s.echo.Static("/thumbs", filepath.Join(s.dataPath, "thumbs"))
s.echo.Static("/css", "./server/assets/css")
s.echo.Static("/js", "./server/assets/js")
s.echo.File("/diff", "./server/assets/diff.html")