alarner / perk

A well documented set of tools for building node web applications.
http://perkframework.com
MIT License
181 stars 31 forks source link

Separate html login / registration flow from API login / registration flow #31

Closed alarner closed 8 years ago

alarner commented 8 years ago

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.