Skip to content

Commit

Permalink
add route
Browse files Browse the repository at this point in the history
  • Loading branch information
parametalol committed Dec 19, 2023
1 parent c566d13 commit b59abcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/dinosaur/pkg/routes/route_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ func (s *options) buildAPIBaseRouter(mainRouter *mux.Router, basePath string, op
adminCentralsRouter.HandleFunc("/{id}/expired-at", adminCentralHandler.PatchExpiredAt).
Name(logger.NewLogEvent("admin-expired-at", "[admin] set `expired_at` central property").ToString()).
Methods(http.MethodPatch)
adminCentralsRouter.HandleFunc("/{id}/billing-model", adminCentralHandler.PatchBillingModel).
Name(logger.NewLogEvent("admin-billing-model", "[admin] change central billing model").ToString()).
Methods(http.MethodPatch)

adminCreateRouter := adminCentralsRouter.NewRoute().Subrouter()
adminCreateRouter.HandleFunc("", adminCentralHandler.Create).Methods(http.MethodPost)
Expand Down

0 comments on commit b59abcf

Please sign in to comment.