Skip to content

Commit

Permalink
update: change slug name from url to code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza12700 committed Sep 12, 2024
1 parent 38d4aae commit 28fdecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 28fdecf

Please sign in to comment.