Spaces:
Paused
Paused
fix static path
Browse files
internal/handler/index.go
CHANGED
|
@@ -10,7 +10,7 @@ if r.URL.Path != "/" {
|
|
| 10 |
http.NotFound(w, r)
|
| 11 |
return
|
| 12 |
}
|
| 13 |
-
content, err := os.ReadFile("static/index.html")
|
| 14 |
if err != nil {
|
| 15 |
http.Error(w, "Page not found", 404)
|
| 16 |
return
|
|
|
|
| 10 |
http.NotFound(w, r)
|
| 11 |
return
|
| 12 |
}
|
| 13 |
+
content, err := os.ReadFile("/app/static/index.html")
|
| 14 |
if err != nil {
|
| 15 |
http.Error(w, "Page not found", 404)
|
| 16 |
return
|