1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Move /api to /ghost/api

closes #1249
- changed routes
- changed apiRoots
This commit is contained in:
Sebastian Gierlinger 2013-10-24 14:50:17 +02:00
parent edbb012a87
commit 030bd29b22
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@
Validate : new Validator(),
settings: {
apiRoot: '/api/v0.1'
apiRoot: '/ghost/api/v0.1'
},
// This is a helper object to denote legacy things in the

View file

@ -205,7 +205,7 @@
headers: {
'X-CSRF-Token': $("meta[name='csrf-param']").attr('content')
},
url: '/api/v0.1/notifications/' + $(self).find('.close').data('id')
url: Ghost.settings.apiRoot + '/notifications/' + $(self).find('.close').data('id')
}).done(function (result) {
bbSelf.$el.slideUp(250, function () {
$(this).show().css({height: "auto"});
@ -237,7 +237,7 @@
headers: {
'X-CSRF-Token': $("meta[name='csrf-param']").attr('content')
},
url: '/api/v0.1/notifications/' + $(self).data('id')
url: Ghost.settings.apiRoot + '/notifications/' + $(self).data('id')
}).done(function (result) {
var height = bbSelf.$('.js-notification').outerHeight(true),
$parent = $(self).parent();