aboutsummaryrefslogtreecommitdiff
path: root/handle.go
diff options
context:
space:
mode:
authorAlex <a.scerba02@gmail.com>2024-01-03 20:19:13 -0500
committerAlex Scerba <alex@scerba.org>2024-10-29 13:20:00 -0400
commit4ee6747d67303306e37cbc23eeda221449ed596f (patch)
tree8d0922d65f4d934a071a1bd631f0eaa3409ae959 /handle.go
parentd51289fb24a02a2f5373f69c03a91621e2b3148f (diff)
Remove blog
Diffstat (limited to 'handle.go')
-rw-r--r--handle.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handle.go b/handle.go
index 631ec9c..bab3c70 100644
--- a/handle.go
+++ b/handle.go
@@ -64,7 +64,7 @@ func (app *application) post(w http.ResponseWriter, r *http.Request) {
path := strings.Split(r.URL.Path, "/")
if len(path) > 4 {
app.notFound(w)
- } else if r.URL.Path == "/blog" || r.URL.Path == "/projects" { // Make a more encompasing change here
+ } else if r.URL.Path == "/projects" {
app.aggregate(w, r)
} else if path[2] == "" {
http.Redirect(w, r, "/"+path[1], http.StatusFound)