routes.rb revision 4949048bda09e116ee3627383e831455954cbe41
816bf6f8088b162b681101d93fd450127a0e586fJulian Kornbergerrequire 'sidekiq/web' if defined? Sidekiq
a847d9812b328c048773e705606b10875a929034Eugen Kuksarequire Rails.root.join('lib', 'router_constraints.rb')
5e2a6a8992b4e9e77be3a94fc87af4dc14b0c8c4henning mueller
a4344d37747b6733bbd0d8df738b614cb385316cTim ReddehaseSpecroutes.define(Ontohub::Application.routes) do
d1f0cb74e8bc61e9185488a431b86816cb1cc7edSascha Graef
c273fbbb7863507673f695bc85709c0cb715011fTim Reddehase resources :filetypes, only: :create
c273fbbb7863507673f695bc85709c0cb715011fTim Reddehase
5ec1c6ff5da427d945d7fb708567ce3526c4c741Tim Reddehase # IRI Routing #
5ec1c6ff5da427d945d7fb708567ce3526c4c741Tim Reddehase ###############
98ba1c38b1cce99ecc61117259f2ae05ffe98469Tim Reddehase # as per Loc/Id definition
5ec1c6ff5da427d945d7fb708567ce3526c4c741Tim Reddehase
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase # Special (/ref-based) Loc/Id routes
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase specified_get '/ref/:reference/:repository_id/*locid' => 'ontologies#show',
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase as: :ontology_iri_versioned,
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase constraints: [
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase RefLocIdRouterConstraint.new(Ontology, ontology: :id),
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html')
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase ]
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase # MMT-Support
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase specified_get '/ref/mmt/:repository_id/*path' => 'ontologies#show',
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase as: :ontology_iri_mmt,
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase constraints: [
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MMTRouterConstraint.new(Ontology, ontology: :id),
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html')
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase ]
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase specified_get '/ref/mmt/:repository_id/*path' => 'mappings#show',
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase as: :ontology_iri_mmt,
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase constraints: [
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MMTRouterConstraint.new(Mapping, ontology: :ontology_id, element: :id),
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html')
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase ]
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase specified_get '/ref/mmt/:repository_id/*path' => 'symbols#index',
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase as: :ontology_iri_mmt,
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase constraints: [
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MMTRouterConstraint.new(OntologyMember::Symbol, ontology: :ontology_id),
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html')
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase ]
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase specified_get '/ref/mmt/:repository_id/*path' => 'sentences#index',
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase as: :ontology_iri_mmt,
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase constraints: [
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MMTRouterConstraint.new(Sentence, ontology: :ontology_id),
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html')
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase ]
4949048bda09e116ee3627383e831455954cbe41Tim Reddehase
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase # Subsites for ontologies
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase ontology_subsites = %i(
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase mappings symbols children
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase sentences theorems comments
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase metadata ontology_versions graphs
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase projects categories tasks license_models formality_levels
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase )
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase ontology_subsites.each do |category|
d11de492e18415f91e383e1567beb4e1385d5938Tim Reddehase specified_get "/:repository_id/*locid///#{category}" => "#{category}#index",
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase as: :"ontology_iri_#{category}",
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase constraints: [
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase LocIdRouterConstraint.new(Ontology, ontology: :ontology_id),
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase ]
7c0f71e3e6e26af2cc91112fdbe3905879bfd893Tim Reddehase end
cc3ee169b3cbf177eaf03e9a590ff9e30c338bd2Tim Reddehase
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase # Loc/Id-Show(-equivalent) routes
81a6387a4ab56a24194ecbabd6609c6bcca568b7Tim Reddehase ######
98ba1c38b1cce99ecc61117259f2ae05ffe98469Tim Reddehase specified_get '/:repository_id/*locid' => 'ontologies#show',
98ba1c38b1cce99ecc61117259f2ae05ffe98469Tim Reddehase as: :ontology_iri,
98ba1c38b1cce99ecc61117259f2ae05ffe98469Tim Reddehase constraints: [
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase LocIdRouterConstraint.new(Ontology, ontology: :id),
98ba1c38b1cce99ecc61117259f2ae05ffe98469Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html'),
98ba1c38b1cce99ecc61117259f2ae05ffe98469Tim Reddehase ]
5ec1c6ff5da427d945d7fb708567ce3526c4c741Tim Reddehase
7dadc1a5aa3845c2ce19ad1daa2c63dfd7b59979Tim Reddehase specified_get '/:repository_id/*locid' => 'mappings#show',
7dadc1a5aa3845c2ce19ad1daa2c63dfd7b59979Tim Reddehase as: :mapping_iri,
7dadc1a5aa3845c2ce19ad1daa2c63dfd7b59979Tim Reddehase constraints: [
7dadc1a5aa3845c2ce19ad1daa2c63dfd7b59979Tim Reddehase LocIdRouterConstraint.new(Mapping, ontology: :ontology_id, element: :id),
7dadc1a5aa3845c2ce19ad1daa2c63dfd7b59979Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html'),
7dadc1a5aa3845c2ce19ad1daa2c63dfd7b59979Tim Reddehase ]
7dadc1a5aa3845c2ce19ad1daa2c63dfd7b59979Tim Reddehase
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase specified_get '/:repository_id/*locid' => 'symbols#index',
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase as: :symbol_iri,
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase constraints: [
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase LocIdRouterConstraint.new(OntologyMember::Symbol, ontology: :ontology_id),
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase MIMERouterConstraint.new('text/html'),
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase ]
d51cee8257d50d1f2d7c0818d968b32096f6b795Tim Reddehase
653f8d7c88abc38a2c42f12b80b3e3efd882e039Tim Reddehase specified_get '/:repository_id/*locid' => 'sentences#index',
653f8d7c88abc38a2c42f12b80b3e3efd882e039Tim Reddehase as: :ontology_iri,
653f8d7c88abc38a2c42f12b80b3e3efd882e039Tim Reddehase constraints: [
653f8d7c88abc38a2c42f12b80b3e3efd882e039Tim Reddehase LocIdRouterConstraint.new(Sentence, ontology: :ontology_id),
653f8d7c88abc38a2c42f12b80b3e3efd882e039Tim Reddehase MIMERouterConstraint.new('text/plain', 'text/html'),
653f8d7c88abc38a2c42f12b80b3e3efd882e039Tim Reddehase ]
653f8d7c88abc38a2c42f12b80b3e3efd882e039Tim Reddehase
5ec1c6ff5da427d945d7fb708567ce3526c4c741Tim Reddehase #
5ec1c6ff5da427d945d7fb708567ce3526c4c741Tim Reddehase ###############
5ec1c6ff5da427d945d7fb708567ce3526c4c741Tim Reddehase
ded96a9824d22005463220b5635523420a056f0cEugen Kuksa resources :ontology_types, only: :show
9789c65179e43e0e8c91aa11c67e60b02250cba9Sascha Graef get '/after_signup', to: 'home#show' , as: 'after_sign_up'
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase
c7dbfa39641dbdf8d00d1fac2ce96d50a97fcb74henning mueller devise_for :users, controllers: {
c7dbfa39641dbdf8d00d1fac2ce96d50a97fcb74henning mueller confirmations: 'users/confirmations',
c7dbfa39641dbdf8d00d1fac2ce96d50a97fcb74henning mueller registrations: 'users/registrations'
c7dbfa39641dbdf8d00d1fac2ce96d50a97fcb74henning mueller }
c7dbfa39641dbdf8d00d1fac2ce96d50a97fcb74henning mueller resources :users, only: :show
560baaad7d614c8aa6b7871e3a99ce33a137d93bJulian Kornberger resources :keys, except: [:show, :edit, :update]
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase
6f91bdc1c03bee33882518bd6b5f072968562061Sascha Graef resources :logics, only: [:index, :show] do
a0b65fd7d17589196751bea546f738c3534c4facChristian Clausen resources :supports, :only => [:create, :update, :destroy, :index]
9fbd3a72a4733a42acbea268f38b75b7a35354dcTim Reddehase resources :graphs, :only => [:index]
634abf6594d5960c4ca0b0701b69a81231b05aceChristian Clausen end
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase
634abf6594d5960c4ca0b0701b69a81231b05aceChristian Clausen resources :languages do
a0b65fd7d17589196751bea546f738c3534c4facChristian Clausen resources :supports, :only => [:create, :update, :destroy, :index]
634abf6594d5960c4ca0b0701b69a81231b05aceChristian Clausen end
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase
7c7f3cf9415077b18027586822f15ac1dafbbaa3Christian Clausen resources :language_mappings
7c7f3cf9415077b18027586822f15ac1dafbbaa3Christian Clausen resources :logic_mappings
7c7f3cf9415077b18027586822f15ac1dafbbaa3Christian Clausen
00c175adc24043fbcd4cd5e3769c9d13e31ff831Model Renamer resources :mappings, only: :index
3b82fa8c1f93a0572ec0d480c8f1645c6ea18e0bTim Reddehase
b23869f9e7504049f5d28bbbc54d812c8ca36abbEugen Kuksa resources :categories, :only => [:index, :show]
b23869f9e7504049f5d28bbbc54d812c8ca36abbEugen Kuksa resources :projects
b23869f9e7504049f5d28bbbc54d812c8ca36abbEugen Kuksa resources :tasks
b23869f9e7504049f5d28bbbc54d812c8ca36abbEugen Kuksa resources :license_models
b23869f9e7504049f5d28bbbc54d812c8ca36abbEugen Kuksa resources :formality_levels
b23869f9e7504049f5d28bbbc54d812c8ca36abbEugen Kuksa
3b82fa8c1f93a0572ec0d480c8f1645c6ea18e0bTim Reddehase
ca68055161f6beb2ec248e789ab787e6de69bd18Christian Clausen resources :language_adjoints
ca68055161f6beb2ec248e789ab787e6de69bd18Christian Clausen resources :logic_adjoints
ca68055161f6beb2ec248e789ab787e6de69bd18Christian Clausen
7c5e9db9a07461d92c007563a2a27ca42ce93baeChristian Clausen resources :serializations
7c5e9db9a07461d92c007563a2a27ca42ce93baeChristian Clausen
1e185b8192422bc09cb7f52f80a4c40d9b935535Julian Kornberger namespace :admin do
d00756bab5dff478d39fe81dc1e06aa50ca917baJulian Kornberger resources :teams, :only => :index
Error!

 

There was an error!

null

java.lang.NullPointerException