routes.rb revision 4949048bda09e116ee3627383e831455954cbe41
a847d9812b328c048773e705606b10875a929034Eugen Kuksarequire Rails.root.join('lib', 'router_constraints.rb')
a4344d37747b6733bbd0d8df738b614cb385316cTim ReddehaseSpecroutes.define(Ontohub::Application.routes) do
5ec1c6ff5da427d945d7fb708567ce3526c4c741Tim Reddehase # IRI Routing #
5ec1c6ff5da427d945d7fb708567ce3526c4c741Tim Reddehase ###############
98ba1c38b1cce99ecc61117259f2ae05ffe98469Tim Reddehase # as per Loc/Id definition
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase # Special (/ref-based) Loc/Id routes
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase specified_get '/ref/:reference/:repository_id/*locid' => 'ontologies#show',
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase RefLocIdRouterConstraint.new(Ontology, ontology: :id),
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html')
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase # MMT-Support
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase specified_get '/ref/mmt/:repository_id/*path' => 'ontologies#show',
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MMTRouterConstraint.new(Ontology, ontology: :id),
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html')
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase specified_get '/ref/mmt/:repository_id/*path' => 'mappings#show',
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MMTRouterConstraint.new(Mapping, ontology: :ontology_id, element: :id),
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html')
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase specified_get '/ref/mmt/:repository_id/*path' => 'symbols#index',
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MMTRouterConstraint.new(OntologyMember::Symbol, ontology: :ontology_id),
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html')
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase specified_get '/ref/mmt/:repository_id/*path' => 'sentences#index',
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MMTRouterConstraint.new(Sentence, ontology: :ontology_id),
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html')
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase # Subsites for ontologies
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase projects categories tasks license_models formality_levels
d11de492e18415f91e383e1567beb4e1385d5938Tim Reddehase specified_get "/:repository_id/*locid///#{category}" => "#{category}#index",
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase LocIdRouterConstraint.new(Ontology, ontology: :ontology_id),
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase # Loc/Id-Show(-equivalent) routes
98ba1c38b1cce99ecc61117259f2ae05ffe98469Tim Reddehase specified_get '/:repository_id/*locid' => 'ontologies#show',
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase LocIdRouterConstraint.new(Ontology, ontology: :id),
98ba1c38b1cce99ecc61117259f2ae05ffe98469Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html'),
7dadc1a5aa3845c2ce19ad1daa2c63dfd7b59979Tim Reddehase specified_get '/:repository_id/*locid' => 'mappings#show',
7dadc1a5aa3845c2ce19ad1daa2c63dfd7b59979Tim Reddehase LocIdRouterConstraint.new(Mapping, ontology: :ontology_id, element: :id),
7dadc1a5aa3845c2ce19ad1daa2c63dfd7b59979Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html'),
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase specified_get '/:repository_id/*locid' => 'symbols#index',
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase LocIdRouterConstraint.new(OntologyMember::Symbol, ontology: :ontology_id),
653f8d7c88abc38a2c42f12b80b3e3efd882e039Tim Reddehase specified_get '/:repository_id/*locid' => 'sentences#index',
653f8d7c88abc38a2c42f12b80b3e3efd882e039Tim Reddehase LocIdRouterConstraint.new(Sentence, ontology: :ontology_id),
653f8d7c88abc38a2c42f12b80b3e3efd882e039Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html'),
5ec1c6ff5da427d945d7fb708567ce3526c4c741Tim Reddehase ###############
9789c65179e43e0e8c91aa11c67e60b02250cba9Sascha Graef get '/after_signup', to: 'home#show' , as: 'after_sign_up'
560baaad7d614c8aa6b7871e3a99ce33a137d93bJulian Kornberger resources :keys, except: [:show, :edit, :update]
a0b65fd7d17589196751bea546f738c3534c4facChristian Clausen resources :supports, :only => [:create, :update, :destroy, :index]