diff --git a/PluralKit.API/Controllers/MemberController.cs b/PluralKit.API/Controllers/MemberController.cs index e2d4b678..ccdaea91 100644 --- a/PluralKit.API/Controllers/MemberController.cs +++ b/PluralKit.API/Controllers/MemberController.cs @@ -7,6 +7,7 @@ namespace PluralKit.API.Controllers { [ApiController] [Route("m")] + [Route("v1/m")] public class MemberController: ControllerBase { private MemberStore _members; diff --git a/PluralKit.API/Controllers/SystemController.cs b/PluralKit.API/Controllers/SystemController.cs index cfa36303..65cb575b 100644 --- a/PluralKit.API/Controllers/SystemController.cs +++ b/PluralKit.API/Controllers/SystemController.cs @@ -30,6 +30,7 @@ namespace PluralKit.API.Controllers [ApiController] [Route("s")] + [Route("v1/s")] public class SystemController : ControllerBase { private SystemStore _systems; @@ -68,7 +69,7 @@ namespace PluralKit.API.Controllers [HttpGet("{hid}/switches")] public async Task>> GetSwitches(string hid, [FromQuery(Name = "before")] Instant? before) { - if (before == default(Instant)) before = SystemClock.Instance.GetCurrentInstant(); + if (before == null) before = SystemClock.Instance.GetCurrentInstant(); var system = await _systems.GetByHid(hid); if (system == null) return NotFound("System not found.");