Skip to content

Commit

Permalink
started clearance handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Impervguin committed Jul 17, 2024
1 parent 0ca08cf commit 61c787e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions internal/ports/clubs.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ func (h *ClubsHandler) Routes() chi.Router {
r.Delete("/media/{club_id}", h.r.Wrap(h.DeleteClubMedia))
r.Put("/media/{club_id}", h.r.Wrap(h.UpdateClubMedia))
r.Get("/clearance/post/", h.r.Wrap(h.GetClearancePost))
r.Get("/clearance/delete/{club_id}", h.r.Wrap(h.GetClearanceDelete))
r.Get("/clearance/update/{club_id}", h.r.Wrap(h.GetClearanceUpdate))
r.Get("/media/clearance/post/{club_id}", h.r.Wrap(h.GetMediaClearancePost))
r.Get("/media/clearance/delete/{club_id}", h.r.Wrap(h.GetMediaClearanceDelete))
r.Put("/media/clearance/update/{club_id}", h.r.Wrap(h.GetMediaClearanceUpdate))

return r
}
Expand Down Expand Up @@ -80,6 +85,26 @@ func (h *ClubsHandler) GetClearancePost(w http.ResponseWriter, req *http.Request
return handler.OkResponse(response)
}

func (h *ClubsHandler) GetClearanceDelete(w http.ResponseWriter, req *http.Request) handler.Response {
return handler.OkResponse(nil)
}

func (h *ClubsHandler) GetClearanceUpdate(w http.ResponseWriter, req *http.Request) handler.Response {
return handler.OkResponse(nil)
}

func (h *ClubsHandler) GetMediaClearancePost(w http.ResponseWriter, req *http.Request) handler.Response {
return handler.OkResponse(nil)
}

func (h *ClubsHandler) GetMediaClearanceDelete(w http.ResponseWriter, req *http.Request) handler.Response {
return handler.OkResponse(nil)
}

func (h *ClubsHandler) GetMediaClearanceUpdate(w http.ResponseWriter, req *http.Request) handler.Response {
return handler.OkResponse(nil)
}

// GetAllClubs
//
// @Summary Возвращает все клубы из БД
Expand Down

0 comments on commit 61c787e

Please sign in to comment.