foreman/app/controllers/api/v1/home_controller.rb @ 64b920ec
3d6d01c7 | Ohad Levy | module Api
|
|
module V1
|
|||
b2b47290 | Petr Chalupa | class HomeController < V1::BaseController
|
|
3d6d01c7 | Ohad Levy | ||
64b920ec | Petr Chalupa | api :GET, "/", "Show available links."
|
|
3d6d01c7 | Ohad Levy | def index
|
|
end
|
|||
64b920ec | Petr Chalupa | api :GET, "/status/", "Show status."
|
|
3d6d01c7 | Ohad Levy | def status
|
|
end
|
|||
b2b47290 | Petr Chalupa | def route_error
|
|
render_error 'route_error', :status => :not_found
|
|||
end
|
|||
3d6d01c7 | Ohad Levy | end
|
|
end
|
|||
end
|