expose version via /api/version

pull/400/head
Adam Monsen 1 year ago
parent dd18c51384
commit b9f5d98b10

@ -0,0 +1,12 @@
# frozen_string_literal: true
module Api
class VersionController < ApiBaseController
skip_before_action :authenticate_user!
skip_authorization_check
def show
render json: { version: Docuseal.version }
end
end
end

@ -52,6 +52,7 @@ Rails.application.routes.draw do
resources :form_events, only: %i[index], path: 'form/:type'
resources :submission_events, only: %i[index], path: 'submission/:type'
end
get 'version', to: 'version#show'
end
resources :verify_pdf_signature, only: %i[create]

Loading…
Cancel
Save