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 }