Sha256: b443933d9c92ab230a2add525f501e8bedd0793976c5f77cc1809fc84b626df7
Contents?: true
Size: 642 Bytes
Versions: 6
Compression:
Stored size: 642 Bytes
Contents
require 'ample_assets/devise_constraint' AmpleAssets::Engine.routes.draw do # Require authentication when Devise is detected constraints(AmpleAssets::DeviseConstraint) do resources :files do member do post :touch post :gravity end collection do post :search get :recent AmpleAssets.allowed_mime_types.keys.each do |key| get key end end end end # This shouldn't be behind authentication match '/files/thumbs/:geometry' => AmpleAssets.dfly.endpoint { |params, app| AmpleAssets.dfly.fetch(params[:uid]).thumb(params[:geometry]) } end
Version data entries
6 entries across 6 versions & 1 rubygems