Sha256: bd4364e090e92a22f90603c782c29e0f949ba88039c1aa6317846e7e2c0fbfb6

Contents?: true

Size: 365 Bytes

Versions: 6

Compression:

Stored size: 365 Bytes

Contents

Mosaico::Engine.routes.draw do
  resources :projects, only: [:create, :show, :update]
  get '/projects/:template_name/new', to: 'projects#new'

  resources :templates, param: :template_name, only: [:show]

  scope :images, as: :mosaico_image do
    get '/(:id)', to: 'images#show'
    post '/', to: 'images#create'
    delete '/:id', to: 'images#destroy'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mosaico-2.0.0 config/routes.rb
mosaico-1.1.1 config/routes.rb
mosaico-1.1.0 config/routes.rb
mosaico-1.0.2 config/routes.rb
mosaico-1.0.1 config/routes.rb
mosaico-1.0.0 config/routes.rb