* Migrated a few classes, and cleaned up by removing some old classs too in the Umbraco.Web Project Signed-off-by: Bjarke Berg <mail@bergmania.dk> * Migrated a few classes, and cleaned up by removing some old classs too in the Umbraco.Web Project Signed-off-by: Bjarke Berg <mail@bergmania.dk> * Moved SurfaceControllerTypeCollection + Builder Signed-off-by: Bjarke Berg <mail@bergmania.dk> * Moved Extension methods Signed-off-by: Bjarke Berg <mail@bergmania.dk> * Removed Wrap methods.. People should use their own TagBuilder Signed-off-by: Bjarke Berg <mail@bergmania.dk>
29 lines
929 B
C#
29 lines
929 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Umbraco.Web.BackOffice.Filters;
|
|
using Umbraco.Web.Common.Attributes;
|
|
using Umbraco.Web.Common.Controllers;
|
|
using Umbraco.Web.Common.Filters;
|
|
|
|
namespace Umbraco.Web.BackOffice.Controllers
|
|
{
|
|
/// <summary>
|
|
/// Provides a base class for authorized auto-routed Umbraco API controllers.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This controller will also append a custom header to the response if the user
|
|
/// is logged in using forms authentication which indicates the seconds remaining
|
|
/// before their timeout expires.
|
|
/// </remarks>
|
|
[IsBackOffice]
|
|
[UmbracoUserTimeoutFilter]
|
|
[UmbracoBackOfficeAuthorize]
|
|
[DisableBrowserCache]
|
|
[UmbracoWebApiRequireHttps]
|
|
[CheckIfUserTicketDataIsStale]
|
|
[MiddlewareFilter(typeof(UnhandledExceptionLoggerFilter))]
|
|
public abstract class UmbracoAuthorizedApiController : UmbracoApiController
|
|
{
|
|
|
|
}
|
|
}
|