Project

General

Profile

Download (466 Bytes) Statistics
| Branch: | Tag: | Revision:
dc38aad3 Joseph Magen
module Api
module V2
class HomeController < V2::BaseController
14ce02a9 Ondrej Prazak
before_filter :require_admin, :only => [:index]
92b7b44d Joseph Magen
layout false
dc38aad3 Joseph Magen
2656873b Martin Bačovský
api :GET, "/", N_("Show available API links")
dc38aad3 Joseph Magen
def index
# we need to load apipie documentation to show all the links.
Apipie.reload_documentation if Apipie.configuration.reload_controllers?
end

2656873b Martin Bačovský
api :GET, "/status/", N_("Show status")
dc38aad3 Joseph Magen
def status
end
end
end
end