mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Updated redirects todo to be a deprecation notice
- When we have todos related to deprecations, we should use @deprecated instead - @deprecated notices should say when a feature was deprecated, not when it was removed
This commit is contained in:
parent
352b4ad537
commit
6741f139d5
@ -12,9 +12,7 @@ module.exports = {
|
||||
value() {
|
||||
return redirects.api.getRedirectsFilePath()
|
||||
.then((filePath) => {
|
||||
// TODO: Default file type is .json for backward compatibility.
|
||||
// When .yaml becomes default or .json is removed at v4,
|
||||
// This part should be changed.
|
||||
// @deprecated: .json was deprecated in v4.0 but is still the default for backwards compat
|
||||
return filePath === null || path.extname(filePath) === '.json'
|
||||
? 'redirects.json'
|
||||
: 'redirects.yaml';
|
||||
|
Loading…
Reference in New Issue
Block a user