Sha256: 3607656166df26f9a493629477d3e047a14e89b040bf14f07298f424b0e02f75

Contents?: true

Size: 1.34 KB

Versions: 14

Compression:

Stored size: 1.34 KB

Contents

# frozen_string_literal: true

Rails.application.routes.draw do
  # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html

  # Reveal health status on /up that returns 200 if the linear boots with no exceptions, otherwise 500.
  # Can be used by load balancers and uptime monitors to verify that the linear is live.
  get "up" => "rails/health#show", as: :rails_health_check

  # Defines the root path route ("/")
  root "root#index"

  HephaestusSettingsController = Hephaestus::SettingsController

  get "/api/#{Rails.application.config.plug_api_version}/settings", to: "hephaestus_settings#new"
  get "/api/#{Rails.application.config.plug_api_version}/settings/:organization_id/:inbox_id/:plug_installation_id/edit", to: "settings#edit"

  post "/api/#{Rails.application.config.plug_api_version}/:record_type/:event", to: "yetto#event"

  # inbound message
  post "/<%= plug_name %>/#{Rails.application.config.plug_api_version}/webhook", to: "<%= plug_name %>#webhook"
  # for return from oauth approval
  get "/<%= plug_name %>/#{Rails.application.config.plug_api_version}/callback", to: "<%= plug_name %>#callback"
  # shows after the oauth dance successfully completes
  get "/<%= plug_name %>/#{Rails.application.config.plug_api_version}/post-install", to: "<%= plug_name %>#show_post_install"
end

Hephaestus::Engine.insert_routes

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hephaestus-0.8.17 templates/config/routes.rb.tt
hephaestus-0.8.16.1 templates/config/routes.rb.tt
hephaestus-0.8.16 templates/config/routes.rb.tt
hephaestus-0.8.15.5 templates/config/routes.rb.tt
hephaestus-0.8.15.4 templates/config/routes.rb.tt
hephaestus-0.8.15.3 templates/config/routes.rb.tt
hephaestus-0.8.15.2 templates/config/routes.rb.tt
hephaestus-0.8.15.1 templates/config/routes.rb.tt
hephaestus-0.8.15 templates/config/routes.rb.tt
hephaestus-0.8.14 templates/config/routes.rb.tt
hephaestus-0.8.13 templates/config/routes.rb.tt
hephaestus-0.8.12.2 templates/config/routes.rb.tt
hephaestus-0.8.12.1 templates/config/routes.rb.tt
hephaestus-0.8.12 templates/config/routes.rb.tt