Class: Gitoe::HTTPServer::Repos
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Gitoe::HTTPServer::Repos
- Defined in:
- lib/gitoe/httpserver/repos.rb
Constant Summary collapse
- Repo =
::Gitoe::Repo::RestfulRugged
- Resources =
namespace under /:repo_id/:resource
Set[ 'commits', 'commit' ].freeze
Instance Method Summary collapse
Instance Method Details
#json(reply) ⇒ Object
14 15 16 17 |
# File 'lib/gitoe/httpserver/repos.rb', line 14 def json reply content_type 'application/json' ::ActiveSupport::JSON.encode(reply) end |