-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for disabling the content app through appsettings.json
Implements #160
- Loading branch information
Showing
5 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/Skybrud.Umbraco.Redirects/Config/RedirectsContentAppSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Skybrud.Umbraco.Redirects.Config { | ||
|
||
/// <summary> | ||
/// Class with settings for the redirects content app. | ||
/// </summary> | ||
public class RedirectsContentAppSettings { | ||
|
||
/// <summary> | ||
/// Gets or sets whether the content app should be enabled. Default is <see langword="true"/>. | ||
/// </summary> | ||
public bool Enabled { get; set; } = true; | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Skybrud.Umbraco.Redirects.Config { | ||
|
||
/// <summary> | ||
/// Class with settings for the redirects package. | ||
/// </summary> | ||
public class RedirectsSettings { | ||
|
||
/// <summary> | ||
/// Gets settings for the redirects content app. | ||
/// </summary> | ||
public RedirectsContentAppSettings ContentApp { get; private set; } = new(); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters