Moved web api endpoint from /api to /web/api

This commit is contained in:
luisramos0
2018-09-17 13:06:19 +01:00
parent dc5eb6448e
commit bded530137
2 changed files with 6 additions and 4 deletions

View File

@@ -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()

View File

@@ -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