mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
22 lines
522 B
C#
22 lines
522 B
C#
|
|
using System.Web.Http;
|
|||
|
|
|
|||
|
|
namespace DiscImageChef.Server
|
|||
|
|
{
|
|||
|
|
public static class WebApiConfig
|
|||
|
|
{
|
|||
|
|
public static void Register(HttpConfiguration config)
|
|||
|
|
{
|
|||
|
|
// Web API configuration and services
|
|||
|
|
|
|||
|
|
// Web API routes
|
|||
|
|
config.MapHttpAttributeRoutes();
|
|||
|
|
|
|||
|
|
config.Routes.MapHttpRoute(
|
|||
|
|
name: "DefaultApi",
|
|||
|
|
routeTemplate: "api/{controller}/{id}",
|
|||
|
|
defaults: new { id = RouteParameter.Optional }
|
|||
|
|
);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|