Skip to content

Commit

Permalink
remove unnecessary endpoint
Browse files Browse the repository at this point in the history
for test that api is working without auth, using `ping` middleware which adds `ping` endpoint for checking
  • Loading branch information
zebox committed Jan 23, 2023
1 parent 9d566be commit 4d2fd14
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,6 @@ func (s *Server) routes() chi.Router {
r.Mount("/auth", authHandler)
})

router.Group(func(r chi.Router) {
r.Use(authMiddleware.Auth)
r.Get("/test", func(writer http.ResponseWriter, request *http.Request) {
u, err := token.GetUserInfo(request)
log.Printf("%v %v", u, err)
})
})

// initialing main endpoints properties for use in handlers
eh := endpointsHandler{
dataStore: s.Storage,
Expand Down

0 comments on commit 4d2fd14

Please sign in to comment.