mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-11 22:13:20 +03:00
Use the ghost-paths consistently.
Always using the utility function ensures that we have the ability to update/change/etc these paths without scouring the codebase. For example, if we ever decide to bump the API version it would be nice if there was only one location it needed to be updated at.
This commit is contained in:
parent
474b9367dd
commit
569fb34a1f
@ -63,7 +63,7 @@ UploadUi = function ($dropzone, settings) {
|
||||
var self = this;
|
||||
|
||||
$dropzone.find('.js-fileupload').fileupload().fileupload('option', {
|
||||
url: Ghost.subdir + '/ghost/api/v0.1/uploads/',
|
||||
url: Ghost.apiRoot + '/uploads/',
|
||||
add: function (e, data) {
|
||||
/*jshint unused:false*/
|
||||
$('.js-button-accept').prop('disabled', true);
|
||||
|
@ -6,7 +6,7 @@ var Router = Ember.Router.extend();
|
||||
|
||||
Router.reopen({
|
||||
location: 'trailing-history', // use HTML5 History API instead of hash-tag based URLs
|
||||
rootURL: ghostPaths().subdir + '/ghost/', // admin interface lives under sub-directory /ghost
|
||||
rootURL: ghostPaths().adminRoot, // admin interface lives under sub-directory /ghost
|
||||
|
||||
clearNotifications: function () {
|
||||
this.notifications.closePassive();
|
||||
|
Loading…
Reference in New Issue
Block a user