mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
10 lines
227 B
Ruby
10 lines
227 B
Ruby
|
|
class API::VersionController < API::ApiController
|
|
before_action :authenticate_user!
|
|
|
|
def show
|
|
authorize :version
|
|
version = File.read('.fabmanager-version')
|
|
render json: {version: version}, status: :ok
|
|
end
|
|
end |