1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

remove dead code of WebhooksController

This commit is contained in:
Sylvain 2020-03-30 15:29:48 +02:00
parent 02c1014412
commit 3dc8d66c63
2 changed files with 0 additions and 12 deletions

View File

@ -1,10 +0,0 @@
class WebhooksController < ApplicationController
protect_from_forgery :except => :create
def create
# data_json = JSON.parse request.body.read
render nothing: true
end
end

View File

@ -4,8 +4,6 @@ require 'sidekiq/web'
require 'sidekiq/cron/web'
Rails.application.routes.draw do
post 'webhooks' => 'webhooks#create'
if AuthProvider.active.providable_type == DatabaseProvider.name
# with local authentification we do not use omniAuth so we must differentiate the config
devise_for :users, controllers: {