mirror of
https://github.com/System-End/theseus.git
synced 2026-04-19 16:38:18 +00:00
19 lines
No EOL
506 B
Ruby
19 lines
No EOL
506 B
Ruby
class QZTraysController < ApplicationController
|
|
skip_after_action :verify_authorized
|
|
skip_before_action :verify_authenticity_token, only: [:sign]
|
|
skip_before_action :authenticate_user!, only: [:test_print]
|
|
def cert
|
|
send_data QZTrayService.certificate
|
|
end
|
|
|
|
def settings
|
|
end
|
|
|
|
def sign
|
|
send_data QZTrayService.sign(params.require(:request))
|
|
end
|
|
|
|
def test_print
|
|
send_file(Rails.root.join('app', 'lib', 'test_print.pdf'), type: 'application/pdf', disposition: 'inline')
|
|
end
|
|
end |