Commit 4aca61e8 authored by Nihad Abbasov's avatar Nihad Abbasov

install grape and mount Gitlab::API

parent 4c1f435a
......@@ -17,6 +17,7 @@ gem "omniauth-ldap", :git => "https://github.com/gitlabhq/omniauth-ldap.git",
gem 'yaml_db', :git => "https://github.com/gitlabhq/yaml_db.git"
gem "linguist", "~> 1.0.0", :git => "https://github.com/gitlabhq/linguist.git"
gem "grape"
gem "stamp"
gem "kaminari"
gem "haml-rails"
......
......@@ -162,6 +162,12 @@ GEM
gherkin (2.11.0)
json (>= 1.4.6)
git (1.2.5)
grape (0.2.0)
hashie (~> 1.2)
multi_json
multi_xml
rack
rack-mount
haml (3.1.6)
haml-rails (0.3.4)
actionpack (~> 3.0)
......@@ -223,6 +229,8 @@ GEM
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-protection (1.2.0)
rack
rack-ssl (1.3.2)
......@@ -373,6 +381,7 @@ DEPENDENCIES
foreman
git
gitolite!
grape
grit!
haml-rails
httparty
......
......@@ -4,6 +4,10 @@ Gitlab::Application.routes.draw do
#
get 'search' => "search#show"
# API
require 'api'
mount Gitlab::API => '/api'
# Optionally, enable Resque here
require 'resque/server'
mount Resque::Server.new, at: '/info/resque'
......
class Gitlab::API < Grape::API
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment