DD.WellWorkover.Cloud/AsbCloudWebApi/Conventions/ApiExplorerGroupPerVersionConvention.cs
2024-08-19 10:01:07 +05:00

12 lines
302 B
C#

using Microsoft.AspNetCore.Mvc.ApplicationModels;
using System.Linq;
namespace AsbCloudWebApi.Conventions;
public class ApiExplorerGroupPerVersionConvention : IControllerModelConvention
{
public void Apply(ControllerModel controller)
{
controller.ApiExplorer.GroupName = "v1";
}
}