diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-11 22:45:05 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-11 22:51:23 +0100 |
| commit | c0befbd02559591b0c2871ea9cef1e4d913b9ef6 (patch) | |
| tree | 60c6a6fbc2f7145499ee9cbe0ab3ad6f7cf73b64 /config | |
| parent | 2a4fedb96791cd80bd6092a0b508f265e4d35348 (diff) | |
| download | operum-c0befbd02559591b0c2871ea9cef1e4d913b9ef6.tar.gz operum-c0befbd02559591b0c2871ea9cef1e4d913b9ef6.zip | |
Allow searching from a given tag
This feature is useful if you want to have a quick search on how many
resources apply for a single tag.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'config')
| -rw-r--r-- | config/routes.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index fe9ee96..1f1df38 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -12,7 +12,10 @@ Rails.application.routes.draw do resource :exports, only: %i[new show] end - resources :tags + resources :tags do + get 'search' => 'tags#search' + end + resources :things, except: %i[index] do resources :comments, only: %i[create update destroy] end |
