Skip to content

Commit

Permalink
disable auth
Browse files Browse the repository at this point in the history
  • Loading branch information
cskinfill committed Nov 1, 2024
1 parent b207ecd commit 23d7792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ func main() {
}
handler := NewServiceHandler(repo)

authMiddleware, err := NewAuthMiddleware(db)
// authMiddleware, err := NewAuthMiddleware(db)

if err != nil {
log.Panicf("Badness %s", err)
}

router := mux.NewRouter()
router.Use(otelmux.Middleware("services"))
router.Use(authMiddleware.Middleware)
// router.Use(authMiddleware.Middleware)
router.Use(prometheusMiddleware)
router.HandleFunc("/services", handler.GetServices).Methods("GET")
router.HandleFunc("/service/{id}", handler.GetService).Methods("GET")
Expand Down

0 comments on commit 23d7792

Please sign in to comment.