mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
6 lines
234 B
Plaintext
6 lines
234 B
Plaintext
|
# frozen_string_literal: true
|
||
|
|
||
|
json.partial! 'open_api/v1/machines/machine', machine: @machine
|
||
|
json.extract! @machine, :description, :spec
|
||
|
json.image URI.join(root_url, @machine.machine_image.attachment.url) if @machine.machine_image
|