ADD status endpoint

This commit is contained in:
2025-05-11 22:47:20 +02:00
parent 8545526218
commit 489372ea61
3 changed files with 25 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package com.ddf.vodsystem.controllers;
import com.ddf.vodsystem.entities.ClipConfig;
import com.ddf.vodsystem.services.EditService;
import org.atmosphere.config.service.Get;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@@ -28,4 +29,9 @@ public class EditController {
return new ResponseEntity<>(uuid, HttpStatus.OK);
}
@GetMapping("/progress/{uuid}")
public ResponseEntity<Float> getProgress(@PathVariable("uuid") String uuid) {
return new ResponseEntity<>(editService.getProgress(uuid), HttpStatus.OK);
}
}