From 91ac69cbe6c3a6f9f5deec2aa403b6d6f0e3f5f3 Mon Sep 17 00:00:00 2001 From: ZhmAA Date: Tue, 24 Jan 2017 22:33:30 +0200 Subject: [PATCH] add api flashcards engine --- Gemfile | 2 ++ Gemfile.lock | 8 ++++++++ config/routes.rb | 2 ++ 3 files changed, 12 insertions(+) diff --git a/Gemfile b/Gemfile index 824e9da..41a5a83 100644 --- a/Gemfile +++ b/Gemfile @@ -44,6 +44,8 @@ gem "pundit" gem 'flickraw-cached' +gem 'api_flashcards', git: 'https://github.com/ZhmAA/api_flashcards' + group :development, :test do gem 'rspec-rails' gem 'capybara' diff --git a/Gemfile.lock b/Gemfile.lock index 663def3..94804fb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -27,6 +27,13 @@ GIT railties (>= 3.2, < 5.1) responders +GIT + remote: https://github.com/ZhmAA/api_flashcards + revision: 48f57e5ec3c6cb7d3dbd7f4c877c3891058f6dac + specs: + api_flashcards (0.1.0) + rails (~> 5.0.0, >= 5.0.0.1) + GEM remote: https://rubygems.org/ specs: @@ -314,6 +321,7 @@ PLATFORMS DEPENDENCIES activeadmin! + api_flashcards! byebug capybara carrierwave diff --git a/config/routes.rb b/config/routes.rb index c41d83c..6774fcf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,6 +2,8 @@ ActiveAdmin.routes(self) filter :locale + mount ApiFlashcards::Engine, at: "/api" + root 'main#index' scope module: 'home' do