change endpoint
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user