Generate swagger for transcoder

This commit is contained in:
Zoe Roux
2025-07-18 23:38:59 +02:00
parent c340a9b559
commit 460e4596f7
4 changed files with 1073 additions and 2 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ func RegisterMetadataHandlers(e *echo.Group, metadata *src.MetadataService) {
// @Param path path string true "Base64 of a video's path" format(base64) example(L3ZpZGVvL2J1YmJsZS5ta3YK)
//
// @Success 200 {object} src.MediaInfo "Metadata info of the video."
// @Router /:path/info [get]
// @Router /:path/info [get]
func (h *mhandler) GetInfo(c echo.Context) error {
path, sha, err := getPath(c)
if err != nil {
@@ -52,7 +52,7 @@ func (h *mhandler) GetInfo(c echo.Context) error {
return c.JSON(http.StatusOK, ret)
}
// @Summary Get subtitle
// @Summary Get subtitle
//
// @Description Get a specific subtitle.
//