Sha256: 0b9e41c2179987532f41b866d04a79f0ff06f7d0eed3a5d71ff9f302e39ea4af

Contents?: true

Size: 838 Bytes

Versions: 3

Compression:

Stored size: 838 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module DirectVerifications
    module Verification
      class AdminEngine < ::Rails::Engine
        isolate_namespace Decidim::DirectVerifications::Verification::Admin
        paths["db/migrate"] = nil

        routes do
          resources :direct_verifications, only: [:index, :create, :stats]
          resources :stats, only: [:index]
          resources :authorizations, only: [:index, :destroy]
          resources :imports, only: [:new, :create]

          root to: "direct_verifications#index"
        end

        initializer "decidim_direct_verifications.admin_assets" do |app|
          app.config.assets.precompile += %w(
            direct_verifications_admin_manifest.js
            direct_verifications_admin_manifest.css
          )
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-direct_verifications-1.0.2 lib/decidim/direct_verifications/verification/admin_engine.rb
decidim-direct_verifications-1.0.1 lib/decidim/direct_verifications/verification/admin_engine.rb
decidim-direct_verifications-1.0 lib/decidim/direct_verifications/verification/admin_engine.rb