The Auth Routes

flitter-auth/deploy/routing/routers/auth.routes.js

deploys to:  app/routing/routers/auth.routes.js         exports:  index

const index

Route definitions for flitter-auth.

prefix

type:  String

The prefix for all routes defined herein. Set to /auth .

get

type:  Object

Collection of routes that use the GET method, and their handlers. As follows:

Route Notes
/register Display a registration page. By default, it applies the auth:RequireGuest middleware and hands off to the register_get() function on the Auth controller.
/login Display a login page. By default, it applies the auth:RequireGuest middleware and hands off to the login_get() function on the Auth controller.
/logout Handle a logout. By default, it applies the auth:RequireAuth middleware and hands off to the logout() function on the Auth controller.
/dash Display the dashboard. By default, it applies the auth:RequireAuth middleware and hands off to the dash_get() function on the Auth controller. This will probably be changed to a redirect to your app's particular dashboard.
post

type:  Object

Collection of routes that use the POST method, and their handlers. As follows:

Route Notes
/register Handle a registration submission. By default, it applies the auth:RequireGuest middleware and hands off to the register_post() function on the Auth controller.
/login Handle a login submission. By default, it applies the auth:RequireGuest middleware and hands off to the login_post() function on the Auth controller.
No Comments
Back to top