Sha256: 1258b9e84b4d548eb3a89ea49e7f508bffb37dfdde0b477f912fcfada3bac7b1

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

namespace "api" do
  resource  :version, only: [:show]
  resource  :site, only: [:show]
  resources :posts do
    member do
      patch :restore
      patch :revert
    end
  end
  resources :syncs, only: [:create]
  resources :deploys, only: [:create]
end

if ENV["LOTUS_ENV"] != "production"
  mount Octodmin.sprockets, at: "/assets"
end

get "/posts*", to: "frontend#index"
get "/", to: "frontend#index", as: :home

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
octodmin-0.2.1 app/config/routes.rb
octodmin-0.2.0 app/config/routes.rb
octodmin-0.1.0 app/config/routes.rb