ADD ignores api

dev_forge
Jasder 5 years ago
parent 6887995333
commit b5ffc58d10

@ -0,0 +1,5 @@
class IgnoresController < ApplicationController
def index
@ignores = Ignore.search(params[:name]).without_content
end
end

@ -1,2 +1,3 @@
class Ignore < ApplicationRecord
include Projectable
end

@ -0,0 +1 @@
json.ignores @ignores, :id, :name

@ -1,5 +1,4 @@
Rails.application.routes.draw do
get 'project_languages/index'
require 'sidekiq/web'
require 'admin_constraint'
mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new
@ -25,6 +24,7 @@ Rails.application.routes.draw do
resources :project_categories, only: [:index, :show]
resources :project_languages, only: [:index, :show]
resources :ignores, only: [:index, :show]
# resources :memos do
# member do

Loading…
Cancel
Save