mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
More trailing slashes
This commit is contained in:
parent
650bdce220
commit
ce57b46358
2 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@
|
|||
var self = this;
|
||||
|
||||
$dropzone.find('.js-fileupload').fileupload().fileupload("option", {
|
||||
url: '/ghost/upload',
|
||||
url: '/ghost/upload/',
|
||||
add: function (e, data) {
|
||||
$progress.find('.js-upload-progress-bar').removeClass('fail');
|
||||
$dropzone.trigger('uploadstart', [$dropzone.attr('id')]);
|
||||
|
|
|
@ -341,7 +341,7 @@ when.all([ghost.init(), helpers.loadCoreHelpers(ghost)]).then(function () {
|
|||
server.get('/ghost/debug/db/export/', auth, admin.debug['export']);
|
||||
server.post('/ghost/debug/db/import/', auth, admin.debug['import']);
|
||||
server.get('/ghost/debug/db/reset/', auth, admin.debug.reset);
|
||||
server.post('/ghost/upload', admin.uploader);
|
||||
server.post('/ghost/upload/', admin.uploader);
|
||||
server.get(/^\/(ghost$|(ghost-admin|admin|wp-admin|dashboard|signin)\/?)/, auth, function (req, res) {
|
||||
res.redirect('/ghost/');
|
||||
});
|
||||
|
@ -352,7 +352,7 @@ when.all([ghost.init(), helpers.loadCoreHelpers(ghost)]).then(function () {
|
|||
server.get('/rss/', frontend.rss);
|
||||
server.get('/rss/:page/', frontend.rss);
|
||||
server.get('/page/:page/', frontend.homepage);
|
||||
server.get('/:slug', frontend.single);
|
||||
server.get('/:slug/', frontend.single);
|
||||
server.get('/', frontend.homepage);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue