Sha256: eef193238fda768420c0b30fed48eff643ee11e93ba26adaf34b3b6c05ac587b

Contents?: true

Size: 455 Bytes

Versions: 13

Compression:

Stored size: 455 Bytes

Contents

People::Engine.routes.draw do

	root to: "users#index"

  scope 'admin' do
	  resources :users
	end

	scope 'api' do
		scope '1' do
	  	resources :users, controller: 'api/v1/users' do
				collection do
					# /api/1/users/register
					post 'register', to: "api/v1/users#register"
					# /api/1/users/login
					post 'login', to: "api/v1/users#login"
					# /api/1/users/logout
					get 'logout', to: "api/v1/users#logout"
				end
	  	end
		end
	end

end

Version data entries

13 entries across 8 versions & 1 rubygems

Version Path
json_voorhees-0.3.0 lib/generators/json_voorhees/app_make_user/templates/user/user_routes.rb
json_voorhees-0.2.3 test/test_app/engines/people/config/routes.rb
json_voorhees-0.2.3 lib/generators/json_voorhees/setup_app/templates/user/user_routes.rb
json_voorhees-0.2.2 lib/generators/json_voorhees/setup_app/templates/user/user_routes.rb
json_voorhees-0.2.2 test/test_app/engines/people/config/routes.rb
json_voorhees-0.2.1 lib/generators/json_voorhees/setup_app/templates/user/user_routes.rb
json_voorhees-0.2.1 test/test_app/engines/people/config/routes.rb
json_voorhees-0.2.0 test/test_app/engines/people/config/routes.rb
json_voorhees-0.2.0 lib/generators/json_voorhees/setup_app/templates/user/user_routes.rb
json_voorhees-0.1.0 test/test_app/engines/people/config/routes.rb
json_voorhees-0.1.0 lib/generators/json_voorhees/setup_app/templates/user/user_routes.rb
json_voorhees-0.0.2 lib/generators/json_voorhees/setup_app/templates/user/user_routes.rb
json_voorhees-0.0.1 lib/generators/json_voorhees/setup_app/templates/user/user_routes.rb