Integrate ApiVersioning library for ASP.NET

This commit is contained in:
Ske
2020-05-07 04:39:49 +02:00
parent db1ebd0a1d
commit c4c3eaf954
6 changed files with 16 additions and 5 deletions

View File

@@ -9,8 +9,9 @@ using PluralKit.Core;
namespace PluralKit.API
{
[ApiController]
[ApiVersion("1.0")]
[Route("m")]
[Route("v1/m")]
[Route( "v{version:apiVersion}/m" )]
public class MemberController: ControllerBase
{
private IDataStore _data;