Right now we re-use the routes /auth/login, /auth/register and /auth/logout to login, register and logout for both the html form based authentication flow as well as the api based authentication flow. Separate these out into two separate groups of routes so that it's easier to tell if html or JSON should be served in the responses.
Right now we re-use the routes
/auth/login
,/auth/register
and/auth/logout
to login, register and logout for both the html form based authentication flow as well as the api based authentication flow. Separate these out into two separate groups of routes so that it's easier to tell if html or JSON should be served in the responses.