vereto-api/config/routes.rb

28 lines
710 B
Ruby
Raw Normal View History

2018-02-16 09:12:51 +00:00
Rails.application.routes.draw do
2019-09-27 19:03:44 +02:00
resources :vouchers
2018-02-22 16:00:39 +00:00
resources :comments
2018-02-16 09:12:51 +00:00
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
2018-02-21 12:09:22 +00:00
scope module: :v2, constraints: ApiVersion.new('v2') do
resources :articles
2018-02-16 11:52:56 +00:00
end
2018-02-21 12:09:22 +00:00
scope module: :v1, constraints: ApiVersion.new('v1', true) do
2018-02-22 16:05:51 +00:00
resources :articles do
resources :comments
end
2018-02-21 12:09:22 +00:00
end
2018-02-19 16:03:07 +00:00
resources :users
2019-09-27 19:03:44 +02:00
# ** TO DO ** #
# Pls activate again when you've made this more secure
# I dont think its a good idea to send passwords over plaintext
# resources :user_profiles
# post 'login', to: 'authentication#authenticate'
# post 'register', to: 'users#create'
# ** TODO ** #
2018-02-16 09:12:51 +00:00
end