cleanup routes

This commit is contained in:
Pete Matsyburka committed 2026-10-25 21:43:38 +02:00
1 parent e55ccc0b76
commit c35407d7a9
4 files changed
+1 -95

No files matched your search

+1 -4
View File
@@ -7,10 +7,7 @@ class ApiPathConsiderJsonMiddleware
def call(env)
if env['PATH_INFO'].starts_with?('/api') &&
(!env['PATH_INFO'].ends_with?('/documents') || env['REQUEST_METHOD'] != 'POST') &&
!env['PATH_INFO'].ends_with?('/attachments') &&
!env['PATH_INFO'].ends_with?('/submitter_sms_clicks') &&
!env['PATH_INFO'].ends_with?('/submitter_email_clicks')
!env['PATH_INFO'].ends_with?('/submitter_sms_clicks')
env['CONTENT_TYPE'] = 'application/json'
end