defaultStaticDir resolves the static dir relative to the repo layout so the server can be run from the repo root with no flags.
()
| 251 | if !ok { |
| 252 | file = "models.html" |
| 253 | } |
| 254 | http.ServeFile(w, r, filepath.Join(dir, file)) |
| 255 | } |
| 256 | |
| 257 | // defaultStaticDir resolves the static dir relative to the repo layout so the |
| 258 | // server can be run from the repo root with no flags. |