2024-04-04 04:21:23 -04:00
|
|
|
# frozen_string_literal: true
|
2024-04-02 13:33:19 -04: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 07:00:46 -04:00
|
|
|
|
2024-04-02 16:05:15 -04: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 13:33:19 -04:00
|
|
|
end
|
2024-04-06 07:00:46 -04:00
|
|
|
|
|
|
|
# Different route name again to match FiMFetch
|
|
|
|
resources :blogs, only: [:index], path: :news
|
2024-04-02 13:33:19 -04:00
|
|
|
end
|