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:
parent
edbb012a87
commit
030bd29b22
2 changed files with 3 additions and 3 deletions
2
init.js
2
init.js
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue