@@ -17,9 +17,7 @@ public VersioningController(ILogger<VersioningController> logger)
1717 }
1818
1919 [ HttpGet ( Constants . RouteName_Api_Versioning_GetNextVersion ) ]
20- public async Task < ActionResult < string > > GetNext (
21- [ FromQuery ] string rc ,
22- [ FromQuery ] bool major = false )
20+ public ActionResult < string > GetNext ( [ FromQuery ] string rc , [ FromQuery ] bool major = false )
2321 {
2422 if ( ! rc . TryParseAsReleaseChannel ( out var releaseChannel ) )
2523 return Problem (
@@ -37,8 +35,7 @@ public async Task<ActionResult<string>> GetNext(
3735 }
3836
3937 [ HttpGet ( Constants . RouteName_Api_Versioning_GetCurrentVersion ) ]
40- public async Task < ActionResult < string > > GetCurrent (
41- [ FromQuery ] string rc )
38+ public ActionResult < string > GetCurrent ( [ FromQuery ] string rc )
4239 {
4340 if ( ! rc . TryParseAsReleaseChannel ( out var releaseChannel ) )
4441 return Problem (
@@ -60,7 +57,7 @@ public async Task<ActionResult<string>> GetCurrent(
6057 [ ProducesResponseType ( StatusCodes . Status418ImATeapot ) ]
6158 [ ProducesResponseType ( StatusCodes . Status404NotFound ) ]
6259 [ ProducesResponseType ( StatusCodes . Status202Accepted ) ]
63- public async Task < ActionResult > Increment ( [ FromQuery ] string rc )
60+ public ActionResult Increment ( [ FromQuery ] string rc , [ FromHeader ( Name = "Authorization" ) ] string adminAccessToken )
6461 {
6562 if ( ! AdminEndpointMetadata . Enabled )
6663 return Problem ( "This instance of Ryubing UpdateServer is not configured to support this endpoint." ,
@@ -92,7 +89,7 @@ public async Task<ActionResult> Increment([FromQuery] string rc)
9289 [ ProducesResponseType ( StatusCodes . Status401Unauthorized ) ]
9390 [ ProducesResponseType ( StatusCodes . Status418ImATeapot ) ]
9491 [ ProducesResponseType ( StatusCodes . Status202Accepted ) ]
95- public async Task < ActionResult > Advance ( )
92+ public ActionResult Advance ( [ FromHeader ( Name = "Authorization" ) ] string adminAccessToken )
9693 {
9794 if ( ! AdminEndpointMetadata . Enabled )
9895 return Problem ( "This instance of Ryubing UpdateServer is not configured to support this endpoint." ,
0 commit comments