|
@@ -7,10 +7,7 @@ import com.chuanxia.mcp.service.VideoM3u8Service;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@@ -21,6 +18,7 @@ import java.util.List;
|
|
@Api("m3u8文件解析")
|
|
@Api("m3u8文件解析")
|
|
@RequestMapping("cdnM3U8")
|
|
@RequestMapping("cdnM3U8")
|
|
@RequiredArgsConstructor
|
|
@RequiredArgsConstructor
|
|
|
|
+@CrossOrigin(origins = "*")
|
|
public class CdnM3u8Controller {
|
|
public class CdnM3u8Controller {
|
|
private final M3U8Utils m3U8Utils;
|
|
private final M3U8Utils m3U8Utils;
|
|
private final VideoM3u8Service m3u8Service;
|
|
private final VideoM3u8Service m3u8Service;
|