From 28fdecfef98788041d3fc4907a939bd88a11240f Mon Sep 17 00:00:00 2001 From: Hamza <72913359+Hamza12700@users.noreply.github.com> Date: Thu, 12 Sep 2024 08:51:37 +0000 Subject: [PATCH] update: change slug name from `url` to `code` --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d3fdfbf..ffd5f8d 100644 --- a/main.go +++ b/main.go @@ -37,7 +37,7 @@ func main() { router.HandleFunc("POST /", handlers.Main) // Route to handle redirection - router.HandleFunc("GET /u/{url}", handlers.Redirection) + router.HandleFunc("GET /u/{code}", handlers.Redirection) fmt.Println("Listening on:", PORT) if err := http.ListenAndServe("0.0.0.0:"+PORT, router); err != nil {