Skip to content

Commit

Permalink
🎨 rename redirects middleware to custom-redirects
Browse files Browse the repository at this point in the history
no issue

- we had two middlewares:
  1. url-redirects
  2. redirects

- this was confusing, so i renamed (2) to custom redirects

custom-redirects.js: you can define custom redirects for your blog in a JSON file
url-redirects.js: Ghost takes care of required admin url or SSL redirects
  • Loading branch information
kirrg001 committed Feb 7, 2017
1 parent c870710 commit f4f562b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/blog/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var debug = require('debug')('ghost:blog'),
serveSharedFile = require('../middleware/serve-shared-file'),
staticTheme = require('../middleware/static-theme'),
themeHandler = require('../middleware/theme-handler'),
customRedirects = require('../middleware/redirects'),
customRedirects = require('../middleware/custom-redirects'),
serveFavicon = require('../middleware/serve-favicon');

module.exports = function setupBlogApp() {
Expand Down
File renamed without changes.

0 comments on commit f4f562b

Please sign in to comment.