Cross Reference: routes.rb
xref
: /
ontohub
/
config
/
routes.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
routes.rb revision a5015ca9daa067f062e9e373c3dfafd5631560d9
2
ronwalf
require
'
resque
/
server
'
2
ronwalf
2
ronwalf
auth_resque
= ->
(
request
)
{
2
ronwalf
request.env
[
'warden'
].
authenticate
?
and
request.env
[
'warden'
]
.user.admin
?
2
ronwalf
}
2
ronwalf
2
ronwalf
Ontohub
::
Application.routes.draw
do
2
ronwalf
2
ronwalf
devise_for
:
users
, :
controllers
=>
{ :
registrations
=>
"
users
/
registrations
"
}
2
ronwalf
resources
:
users
, :
only
=> :
show
2
ronwalf
2
ronwalf
resources
:
logics
do
2
ronwalf
resources
:
supports
, :
only
=> [:
create
, :
update
, :
destroy
, :
index
]
2
ronwalf
end
2
ronwalf
2
ronwalf
resources
:
languages
do
2
ronwalf
resources
:
supports
, :
only
=> [:
create
, :
update
, :
destroy
, :
index
]
2
ronwalf
end
2
ronwalf
2
ronwalf
resources
:
language_mappings
2
ronwalf
resources
:
logic_mappings
2
ronwalf
2
ronwalf
resources
:
language_adjoints
2
ronwalf
resources
:
logic_adjoints
2
ronwalf
2
ronwalf
resources
:
serializations
2
ronwalf
2
ronwalf
namespace
:
admin
do
2
ronwalf
resources
:
teams
, :
only
=> :
index
2
ronwalf
resources
:
users
2
ronwalf
end
2
ronwalf
2
ronwalf
constraints
auth_resque
do
2
ronwalf
mount
Resque
::
Server
, :
at
=>
"/
admin
/
resque
"
2
ronwalf
end
2
ronwalf
2
ronwalf
resources
:
ontologies
,
only
: :
show
do
2
ronwalf
resources
:
children
, :
only
=> :
index
2
ronwalf
resources
:
entities
, :
only
=> :
index
2
ronwalf
resources
:
sentences
, :
only
=> :
index
2
ronwalf
resources
:
ontology_versions
, :
only
=> [:
index
, :
show
, :
new
, :
create
], :
path
=>
'versions'
do
2
ronwalf
resource
:
oops_request
, :
only
=> [:
show
, :
create
]
2
ronwalf
end
2
ronwalf
2
ronwalf
# %w( entities sentences ).each do |name|
2
ronwalf
# get "versions/:number/#{name}" => "#{name}#index", :as => "ontology_version_#{name}"
2
ronwalf
# end
2
ronwalf
2
ronwalf
resources
:
metadata
, :
only
=> [:
index
, :
create
, :
destroy
]
2
ronwalf
resources
:
comments
, :
only
=> [:
index
, :
create
, :
destroy
]
2
ronwalf
end
2
ronwalf
2
ronwalf
resources
:
teams
do
2
ronwalf
resources
:
permissions
, :
only
=> [:
index
], :
controller
=>
'
teams
/
permissions
'
2
ronwalf
resources
:
team_users
, :
only
=> [:
index
, :
create
, :
update
, :
destroy
], :
path
=>
'users'
2
ronwalf
end
2
ronwalf
2
ronwalf
get
'autocomplete'
=>
'autocomplete#index'
2
ronwalf
get
'search'
=>
'search#index'
14
daenzerorama
14
daenzerorama
resources
:
repositories
do
14
daenzerorama
resources
:
permissions
, :
only
=> [:
index
, :
create
, :
update
, :
destroy
]
14
daenzerorama
resources
:
ontologies
do
14
daenzerorama
get
'bulk'
, :
on
=> :
collection
14
daenzerorama
end
2
ronwalf
end
2
ronwalf
2
ronwalf
root
:
to
=>
'home#show'
2
ronwalf
2
ronwalf
end
2
ronwalf