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 2 additions and 2 deletions
Showing only changes of commit 30dee1ec2c - Show all commits

View File

@@ -335,7 +335,7 @@ func (h *TimesHandler) GetPlacements(ctx *gin.Context) {
// @Success 200 {object} dto.Response[dto.BotDownloadUrl]
// @Failure 404 {object} dto.Error "Time does not have a Bot"
// @Failure default {object} dto.Error "General error response"
// @Router /time/{id}/download-url [get]
// @Router /time/{id}/bot [get]
func (h *TimesHandler) GetDownloadUrl(ctx *gin.Context) {
// Extract time ID from path parameter
id := ctx.Param("id")

View File

@@ -145,7 +145,7 @@ func setupRoutes(cfg *RouterConfig) (*gin.Engine, error) {
// Auth middleware
v1_bots.Use(middleware.ValidateRequest("Storage", "Read", cfg.devClient))
v1_bots.GET("/time/:id/download-url", timesHandler.GetDownloadUrl)
v1_bots.GET("/time/:id/bot", timesHandler.GetDownloadUrl)
}
r.GET("/docs/*any", ginSwagger.WrapHandler(swaggerfiles.Handler))
r.GET("/", func(ctx *gin.Context) {