Skip to content

Commit

Permalink
show response parameter in swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Jan 18, 2025
1 parent a49df4d commit 175b92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BE/Controllers/Admin/GlobalConfigs/VersionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ public class VersionController : ControllerBase
const int buildVersion = 0;

[HttpGet]
public ActionResult GetCurrentVersion()
public ActionResult<int> GetCurrentVersion()
{
return Ok(buildVersion);
}

[HttpPost("check-update")]
public async Task<ActionResult> CheckUpdate(CancellationToken cancellationToken)
public async Task<ActionResult<CheckUpdateResponse>> CheckUpdate(CancellationToken cancellationToken)
{
string tagName = await GitHubReleaseChecker.SdcbChats.GetLatestReleaseTagNameAsync(cancellationToken);
bool hasNewVersion = GitHubReleaseChecker.IsNewVersionAvailableAsync(tagName, buildVersion);
Expand Down

0 comments on commit 175b92c

Please sign in to comment.