-
Notifications
You must be signed in to change notification settings - Fork 30
/
routes.rb
17 lines (16 loc) · 1.17 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Qa::Engine.routes.draw do
get "/search/linked_data/:vocab(/:subauthority)", controller: :linked_data_terms, action: :search
get "/show/linked_data/:vocab/:id", controller: :linked_data_terms, action: :show
get "/show/linked_data/:vocab/:subauthority/:id", controller: :linked_data_terms, action: :show
get "/terms/:vocab(/:subauthority)", controller: :terms, action: :index
get "/search/:vocab(/:subauthority)", controller: :terms, action: :search
get "/show/:vocab/:id", controller: :terms, action: :show
get "/show/:vocab/:subauthority/:id", controller: :terms, action: :show
match "/search/linked_data/:vocab(/:subauthority)", to: 'application#options', via: [:options]
match "/show/linked_data/:vocab/:id", to: 'application#options', via: [:options]
match "/show/linked_data/:vocab/:subauthority/:id", to: 'application#options', via: [:options]
match "/terms/:vocab(/:subauthority)", to: 'application#options', via: [:options]
match "/search/:vocab(/:subauthority)", to: 'application#options', via: [:options]
match "/show/:vocab/:id", to: 'application#options', via: [:options]
match "/show/:vocab/:subauthority/:id", to: 'application#options', via: [:options]
end