Add list playgrounds and create/update playground endpoints. (#221)
User is expected to send a predefined token as basic auth password.
This commit is contained in:
committed by
Marcos Nils
parent
95e4aaa5f7
commit
0ad73acbb9
@@ -75,6 +75,8 @@ func Register(extend HandlerExtender) {
|
||||
r.HandleFunc("/oauth/providers", ListProviders).Methods("GET")
|
||||
r.HandleFunc("/oauth/providers/{provider}/login", Login).Methods("GET")
|
||||
r.HandleFunc("/oauth/providers/{provider}/callback", LoginCallback).Methods("GET")
|
||||
r.HandleFunc("/playgrounds", NewPlayground).Methods("PUT")
|
||||
r.HandleFunc("/playgrounds", ListPlaygrounds).Methods("GET")
|
||||
|
||||
corsRouter.HandleFunc("/", NewSession).Methods("POST")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user