PromucFlow_constructor/app/server/url/constants.go
Arpit Mohan 1133b53437 Adding Google authentication via Goth. All endpoints can now be authenticated.
Other changes include:
* Also removing httprouter mux in favour of gorilla for being more mature and having more integrations and resources available for debugging.
* Adding http middlewares for logging req processing time and handling authentication.

TODO: Need to add context in the middleware as well. Will be useful for logging and debugging.
2019-03-16 15:47:47 +05:30

10 lines
269 B
Go

package url
const ComponentURL = "/components"
const QueryURL = "/query"
const LoginURL = "/login"
const AuthURL = "/auth/{provider}"
const AuthCallbackURL = "/auth/{provider}/callback"
const LogoutURL = "/logout/{provider}"
const ProfileURL = "/auth/{provider}/user"