Skip to content

Commit

Permalink
redirect from sparc[#155629819]
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiel86 committed Apr 24, 2018
1 parent bfb3680 commit ba49f81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@
end
end

get 'fulfillment/sub_service_request/:id', to: redirect { |params, request|
protocol_id = Protocol.where(sub_service_request_id: params[:id]).first.id
"/protocols/#{protocol_id}"
}

mount API::Base => '/'

root 'protocols#index'
Expand Down

0 comments on commit ba49f81

Please sign in to comment.