Sha256: 1cc4537a7cdea83ffd0e996dfddb10b17fc75e758f67c3ad6c27a7d0f2fb7107
Contents?: true
Size: 791 Bytes
Versions: 21
Compression:
Stored size: 791 Bytes
Contents
Rails.application.routes.draw do # when using multiple models, controllers will default to the first available # devise mapping. routes for subsequent devise mappings will need to defined # within a `devise_scope` block # define :users as the first devise mapping: mount_devise_token_auth_for 'User', at: '/auth' # define :mangs as the second devise mapping. routes using this class will # need to be defined within a devise_scope as shown below mount_devise_token_auth_for "Mang", at: '/bong' # this route will authorize visitors using the User class get 'demo/members_only', to: 'demo#members_only' # routes within this block will authorize visitors using the Mang class devise_scope :mang do get 'demo/members_only_mang', to: 'demo#members_only' end end
Version data entries
21 entries across 21 versions & 1 rubygems