lespoupeesrusses/promethee

View on GitHub
lib/promethee/core_ext/mapper.rb

Summary

Maintainability
A
0 mins
Test Coverage
ActionDispatch::Routing::Mapper.class_eval do
  def promethee path: :promethee
    namespace :promethee, path: path.to_s, module: nil  do
      post 'preview' => 'promethee#preview', as: :preview
      post 'blob' => 'promethee#blob_create', as: :active_storage_create
      get 'blob/:id' => 'promethee#blob_show'
    end
  end
end