summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatt Arnold <matt@thegnuguru.org>2023-02-09 18:41:27 -0500
committerMatt Arnold <matt@thegnuguru.org>2023-02-09 18:41:27 -0500
commit63402ca86de6160ccf8a006b4f9a5979e0bb0024 (patch)
treee380374c304a49f6ad7253cc4198454bfd548d81
parent46c18d57596a348470d0f0cfffc1c2e402693fb8 (diff)
troubleshoot
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 250b52f..11c740b 100644
--- a/main.go
+++ b/main.go
@@ -554,9 +554,9 @@ func main() {
 
 	r.PathPrefix("/assets/").Handler(http.StripPrefix("/assets/", http.FileServer(http.Dir("./assets"))))
 	r.HandleFunc("/.well-known/webfinger", webfingeRequest)
-	apRoute := r.PathPrefix("/u").Subrouter()
-	apRoute.HandleFunc("/piusbird", serveUser)
-	apRoute.HandleFunc("/@piusbird", serveProfileHtml)
+
+	r.HandleFunc("/u/piusbird", serveUser)
+	r.HandleFunc("/u/@piusbird", serveProfileHtml)
 
 	f, err := os.OpenFile("blog-backend.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)