Sha256: e312ca4ddd5cb4aa827e24792173242ae8dcc760ee6ce0d66e10711ce47be6b6

Contents?: true

Size: 563 Bytes

Versions: 5

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

require 'roda'
require 'gov_fake_notify/notifications_app'
require 'gov_fake_notify/files_app'
require 'gov_fake_notify/control_app'
require 'gov_fake_notify/templates_app'
require 'gov_fake_notify/current_service'

module GovFakeNotify
  # The root application
  class RootApp < Roda
    include CurrentService
    plugin :multi_run
    plugin :common_logger
    run 'v2/notifications', NotificationsApp
    run 'v2/templates', TemplatesApp
    run 'files', FilesApp
    run 'control', ControlApp

    route(&:multi_run)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gov_fake_notify-2.0.0 lib/gov_fake_notify/root_app.rb
gov_fake_notify-1.2.0 lib/gov_fake_notify/root_app.rb
gov_fake_notify-1.1.3 lib/gov_fake_notify/root_app.rb
gov_fake_notify-1.1.2 lib/gov_fake_notify/root_app.rb
gov_fake_notify-1.1.1 lib/gov_fake_notify/root_app.rb