File 0001-Expose-OPTIONS-route-for-cib-ID-bsc-989794.patch of Package hawk2

From db7b7268a46c8e91d1c6794c23c01714c7dcae57 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se>
Date: Sun, 31 Jul 2016 01:22:26 +0200
Subject: [PATCH] Expose OPTIONS route for /cib/<ID> (bsc#989794)

---
 hawk/config/routes.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hawk/config/routes.rb b/hawk/config/routes.rb
index 0a879ad..f086869 100644
--- a/hawk/config/routes.rb
+++ b/hawk/config/routes.rb
@@ -6,6 +6,7 @@ Rails.application.routes.draw do
 
   resources :cib, only: [] do
     get "/", via: [:get, :post, :options], to: "cib#show", as: ""
+    match "/", via: [:options], to: "cib#show"
     match "/apply", as: :apply, to: 'cib#apply', via: [:get, :post]
     get "/ops/:id", to: "cib#ops", as: :ops
 
-- 
2.9.0

openSUSE Build Service is sponsored by