From 1a79b7beacb829b7c64500f44c666eb6a47b6fdb Mon Sep 17 00:00:00 2001 From: legitnull Date: Wed, 12 Apr 2023 16:45:55 -0600 Subject: [PATCH] fixed tree again lol --- README.md | 1 + src/main.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c91b6b7..c749c4e 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,7 @@ change `main` to your specific repo's branch and you should be good to go! - [ ] sort by date etc - [ ] reply to replies - [ ] set security controls per page + - [ ] auto refresh on post - [ ] dynamically generated links for all avaiable pages - [ ] sitemap - [ ] anti robot shit here diff --git a/src/main.go b/src/main.go index b0dd076..9840523 100644 --- a/src/main.go +++ b/src/main.go @@ -17,7 +17,7 @@ import ( const repoURL = "https://git.tcp.direct/S4D/tcp-wiki.git" const repoBRANCH = "main" -const localPath = "../data" +const localPath = "data" var commentsDB *bitcask.Bitcask @@ -27,7 +27,7 @@ func main() { log.Fatalf("Failed to clone repository: %v", err) } - commentsDB, err = bitcask.Open("../comments.db") + commentsDB, err = bitcask.Open("comments.db") if err != nil { log.Fatalf("Failed to open comments database: %v", err) } @@ -66,7 +66,7 @@ func handler(w http.ResponseWriter, r *http.Request) { //... - if r.URL.Path == "../assets/favicon.ico" { + if r.URL.Path == "assets/favicon.ico" { return }