2024-04-04 10:21:23 +02:00
|
|
|
# frozen_string_literal: true
|
2024-04-02 19:33:19 +02:00
|
|
|
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
|
|
|
|
2024-04-02 22:05:15 +02:00
|
|
|
# using singular-named routes to match FiMFetch/FiMFiction.
|
|
|
|
resources :stories, only: [:show], path: :story do
|
|
|
|
resources :chapters, only: [:show], path: :chapter
|
2024-04-02 19:33:19 +02:00
|
|
|
end
|
2024-04-06 13:00:46 +02:00
|
|
|
|
|
|
|
# Different route name again to match FiMFetch
|
|
|
|
resources :blogs, only: [:index], path: :news
|
2024-04-02 19:33:19 +02:00
|
|
|
end
|