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:
Jonathan Leibiusky
2017-11-21 12:55:35 -03:00
committed by Marcos Nils
parent 95e4aaa5f7
commit 0ad73acbb9
3 changed files with 69 additions and 0 deletions

View File

@@ -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")