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

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