chore: archi package du projet

This commit is contained in:
Laurent Drogou
2021-04-13 14:09:58 +02:00
parent 7544643cfb
commit 8cdf1ca15f
9 changed files with 126 additions and 97 deletions

11
routeserv/routes.go Normal file
View File

@@ -0,0 +1,11 @@
package routeserv
func (s *Server) routes() {
s.Router.HandleFunc("/index", s.handleIndex()).Methods("GET")
s.Router.HandleFunc("/oauth/redirect", s.handleRedirect()).Methods("GET")
s.Router.HandleFunc("/local", s.handleLocal()).Methods("POST")
s.Router.HandleFunc("/oauth20", s.handleOAuth20()).Methods("POST")
s.Router.HandleFunc("/jwt/{id}", s.handleJSONWebToken()).Methods("GET")
s.Router.HandleFunc("/jwt/refresh/{id}", s.handleRefreshToken()).Methods("POST")
}