foalfetch/config/routes.rb

22 lines
620 B
Ruby
Raw Normal View History

2024-04-04 10:21:23 +02:00
# frozen_string_literal: true
Rails.application.routes.draw do
root 'search#index'
post '/search' => 'search#search'
get '/search' => 'search#search'
get '/about' => 'static_pages#about'
get '/images' => 'images#show'
resources :authors, only: [:show]
2024-04-06 13:00:46 +02:00
# using singular-named routes to match FiMFetch/FiMFiction.
resources :stories, only: [:show], path: :story do
resources :chapters, only: [:show], path: :chapter
2024-07-30 15:53:39 +02:00
scope module: :stories do
resource :download, only: :show
end
end
2024-04-06 13:00:46 +02:00
# Different route name again to match FiMFetch
resources :blogs, only: [:index], path: :news
end