mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
refactor: remove asp.net versioning
This commit is contained in:
parent
1626e0f548
commit
eb4f53c69e
14 changed files with 119 additions and 36 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue