Sha256: 63ea5d6de1eeb79824a13d9fa84787bf6b4f8a972bb6adf553fda8093f878405

Contents?: true

Size: 438 Bytes

Versions: 6

Compression:

Stored size: 438 Bytes

Contents

namespace "api" do
  resource  :version, only: [:show]
  resource  :site, only: [:show]
  resources :posts do
    member do
      patch :restore
      patch :revert
      post  :upload
    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

6 entries across 6 versions & 1 rubygems

Version Path
octodmin-0.3.5 app/config/routes.rb
octodmin-0.3.4 app/config/routes.rb
octodmin-0.3.3 app/config/routes.rb
octodmin-0.3.2 app/config/routes.rb
octodmin-0.3.1 app/config/routes.rb
octodmin-0.3.0 app/config/routes.rb