17 lines
275 B
Ruby
17 lines
275 B
Ruby
require 'json'
|
|
|
|
module WZombi
|
|
module Routes
|
|
class Cmd
|
|
def initialize(config)
|
|
@config = config
|
|
end
|
|
|
|
def call(_req, res)
|
|
res['Content-Type'] = 'application/json'
|
|
res.body = File.read(@config.cmd_path)
|
|
end
|
|
end
|
|
end
|
|
end
|