refactor: remove asp.net versioning
This commit is contained in:
@@ -7,8 +7,7 @@ using PluralKit.Core;
|
||||
namespace PluralKit.API;
|
||||
|
||||
[ApiController]
|
||||
[ApiVersion("1.0")]
|
||||
[Route("v{version:apiVersion}/msg")]
|
||||
[Route("v1")]
|
||||
public class MessageController: ControllerBase
|
||||
{
|
||||
private readonly IDatabase _db;
|
||||
@@ -20,7 +19,7 @@ public class MessageController: ControllerBase
|
||||
_db = db;
|
||||
}
|
||||
|
||||
[HttpGet("{mid}")]
|
||||
[HttpGet("msg/{mid}")]
|
||||
public async Task<ActionResult<JObject>> GetMessage(ulong mid)
|
||||
{
|
||||
var msg = await _db.Execute(c => _repo.GetMessage(c, mid));
|
||||
|
||||
Reference in New Issue
Block a user