diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-13 18:03:43 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-13 18:03:43 +0100 |
| commit | a7791635aa98f012d35f97c3c5288494bbb28e38 (patch) | |
| tree | bad987e6b4d10ad2f7cd02e40658d464907595ee /config/routes.rb | |
| download | operum-a7791635aa98f012d35f97c3c5288494bbb28e38.tar.gz operum-a7791635aa98f012d35f97c3c5288494bbb28e38.zip | |
Initial commit
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'config/routes.rb')
| -rw-r--r-- | config/routes.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 0000000..1e5eedb --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +Rails.application.routes.draw do + resources :searches do + collection do + get 'search' + get 'shared' => 'shared_searches#index' + end + + get 'shared' => 'shared_searches#show' + + resource :exports, only: %i[new show] + end + + resources :tags, only: %i[index new create destroy] + resources :things, except: %i[index] do + resources :comments, only: %i[create update destroy] + end + + resource :license, only: %i[show] + resource :sessions, only: %i[new create destroy] + + # Provided by Rails for health checking :) + get 'up' => 'rails/health#show', as: :rails_health_check + + root 'searches#index' +end |
