MCPcopy
hub / github.com/ory/hydra / SetAdminRoutes

Method SetAdminRoutes

client/handler.go:42–50  ·  view source on GitHub ↗
(r *httprouterx.RouterAdmin)

Source from the content-addressed store, hash-verified

40}
41
42func (h *Handler) SetAdminRoutes(r *httprouterx.RouterAdmin) {
43 r.GET(ClientsHandlerPath, h.listOAuth2Clients)
44 r.POST(ClientsHandlerPath, h.createOAuth2Client)
45 r.GET(ClientsHandlerPath+"/{id}", h.Get)
46 r.PUT(ClientsHandlerPath+"/{id}", h.setOAuth2Client)
47 r.PATCH(ClientsHandlerPath+"/{id}", h.patchOAuth2Client)
48 r.DELETE(ClientsHandlerPath+"/{id}", h.deleteOAuth2Client)
49 r.PUT(ClientsHandlerPath+"/{id}/lifespans", h.setOAuth2ClientLifespans)
50}
51
52func (h *Handler) SetPublicRoutes(r *httprouterx.RouterPublic) {
53 r.POST(DynClientsHandlerPath, h.createOidcDynamicClient)

Callers 2

TestHandlerFunction · 0.95
TestClientSDKFunction · 0.95

Calls 5

GETMethod · 0.65
POSTMethod · 0.65
PUTMethod · 0.65
PATCHMethod · 0.65
DELETEMethod · 0.65

Tested by 2

TestHandlerFunction · 0.76
TestClientSDKFunction · 0.76