Deploy Bots API #28

Merged
Quaternions merged 34 commits from staging into master 2026-02-28 02:33:43 +00:00
2 changed files with 1 additions and 9 deletions
Showing only changes of commit fee1b968c5 - Show all commits

View File

@@ -42,10 +42,6 @@ type TimeData struct {
GameID int32 `json:"game_id"`
} // @name Time
type BotDownloadUrl struct {
Url string `json:"url"`
} // @name BotDownloadUrl
// FromGRPC converts a TimeResponse protobuf message to a TimeData domain object
func (t *TimeData) FromGRPC(resp *times.TimeResponse) *TimeData {
if resp == nil {

View File

@@ -485,9 +485,5 @@ func (h *TimesHandler) GetDownloadUrl(ctx *gin.Context) {
}
// Return the download url
ctx.JSON(http.StatusOK, dto.Response[dto.BotDownloadUrl]{
Data: dto.BotDownloadUrl{
Url: info.Url,
},
})
ctx.Redirect(http.StatusFound, info.Url)
}