summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-12 14:33:30 -0600
committerJeff Carr <[email protected]>2024-01-12 14:33:30 -0600
commit012eacafd9f586982e1bd851dfa4d2014990b87b (patch)
treee512478df50359219a648606947672076ea1e10a /main.go
parente6e9b548cbe027416d5c3924cf4c131d2dd4fe1f (diff)
might work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 20bfa8f..01a7f70 100644
--- a/main.go
+++ b/main.go
@@ -21,10 +21,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
return
}
if tmp == "/" {
- findFile(w, "files/index.html")
- return
- }
- if tmp == "/new" {
indexHeader(w)
indexBodyStart(w)
indexBodyScanConfig(w)
@@ -32,6 +28,10 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
indexBodyEnd(w)
return
}
+ if tmp == "/old" {
+ findFile(w, "files/index.html")
+ return
+ }
if tmp == "/test" {
findFile(w, "files/repo.html")
return