lib/hephaestus/generators/config_generator.rb in hephaestus-0.3.1 vs lib/hephaestus/generators/config_generator.rb in hephaestus-0.4.0
- old
+ new
@@ -87,14 +87,13 @@
routes = <<~ROUTES
root "root#index"
# events into the plug, usually from yetto
get "/api/2023-03-06/settings", to: "settings#new"
- post "/api/2023-03-06/:event/:record_type", to: "yetto#event"
+ post "/api/2023-03-06/:record_type/:event", to: "yetto#event"
# inbound message
- post "/app/2023-03-06/webhook/:organization_id/:inbox_id/:plug_installation_id", to: "app#webhook"
- # post "/app/2023-03-06/webhook/inbound", to: "app#process_inbound" # for generic inbound pings
+ post "/$app/2023-03-06/webhook/inbound", to: "app#webhook"
# Staff pages
get "staff", to: "staff#index"
require "sidekiq/web"
constraints ->(request) { StaffController.staff_request?(request) } do