Added HttpException class for missing HttpException for net8 Wrapped HttpContext.Session, GetJsonResult, IsAjaxRequest and GetUserIdentityName in controllers for net8 Added AuthenticationService to test Fab2ApprovalMKLink code for net8 Compile conditionally flags to debug in dotnet core
17 lines
409 B
C#
17 lines
409 B
C#
using System.Web.Http;
|
|
|
|
namespace Fab2ApprovalSystem;
|
|
|
|
public static class WebApiConfig {
|
|
public static void Register(HttpConfiguration config) {
|
|
config.MapHttpAttributeRoutes();
|
|
|
|
#if !NET8
|
|
config.Routes.MapHttpRoute(
|
|
name: "DefaultApi",
|
|
routeTemplate: "api/{controller}/{id}",
|
|
defaults: new { id = RouteParameter.Optional }
|
|
);
|
|
#endif
|
|
}
|
|
} |