mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Moved web api endpoint from /api to /web/api
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Darkswarm.controller "CookiesBannerCtrl", ($scope, CookiesBannerService, $http, $window)->
|
||||
|
||||
$scope.acceptCookies = ->
|
||||
$http.post('/api/cookies/consent')
|
||||
$http.post('/web/api/cookies/consent')
|
||||
CookiesBannerService.close()
|
||||
CookiesBannerService.disable()
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
Web::Engine.routes.draw do
|
||||
namespace :api do
|
||||
scope '/cookies' do
|
||||
resource :consent, only: [:show, :create, :destroy], controller: "cookies_consent"
|
||||
namespace :web do
|
||||
namespace :api do
|
||||
scope '/cookies' do
|
||||
resource :consent, only: [:show, :create, :destroy], controller: "cookies_consent"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user