Skip to content

Commit 4dfe74f

Browse files
author
omerh
committed
edited router routes for simplicity
1 parent 4cd33cb commit 4dfe74f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ func GetCounter(w http.ResponseWriter, r *http.Request) {
4848

4949
func main() {
5050
router := mux.NewRouter()
51-
router.HandleFunc("/", GetRootRequest).Methods("GET")
51+
router.HandleFunc("/", GetImpression).Methods("GET")
52+
router.HandleFunc("/info", GetRootRequest).Methods("GET")
5253
router.HandleFunc("/ping", GetPing).Methods("GET")
53-
router.HandleFunc("/i", GetImpression).Methods("GET")
5454
router.HandleFunc("/admin", GetCounter).Methods("GET")
5555
log.Fatal(http.ListenAndServe(":8080", router))
5656
}

0 commit comments

Comments
 (0)