lib/promethee/core_ext/mapper.rb
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