更新视频 URL 和配置文件
将 `VideoController` 中的视频 URL 前缀更改为 `/api`,并在 `application.yml` 中添加了 `context-path` 配置。删除了 `application-prod.yml` 中重复的 `context-path` 配置。
This commit is contained in:
parent
5c414537f9
commit
8f20640018
@ -45,7 +45,7 @@ public class VideoController {
|
|||||||
@GetMapping("/madou/{id}")
|
@GetMapping("/madou/{id}")
|
||||||
public JsonResult<MadouVideoInfo> getMadouVideoById(@PathVariable Long id) {
|
public JsonResult<MadouVideoInfo> getMadouVideoById(@PathVariable Long id) {
|
||||||
MadouVideoInfo madouVideoInfo = madouVideoService.getById(id);
|
MadouVideoInfo madouVideoInfo = madouVideoService.getById(id);
|
||||||
madouVideoInfo.setM3u8Url("/video/" + id + "/index.m3u8");
|
madouVideoInfo.setM3u8Url("/api/video/" + id + "/index.m3u8");
|
||||||
return JsonResult.ok(madouVideoInfo);
|
return JsonResult.ok(madouVideoInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,3 @@ spring:
|
|||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
root: info
|
root: info
|
||||||
server:
|
|
||||||
servlet:
|
|
||||||
context-path: /api
|
|
||||||
@ -1,4 +1,6 @@
|
|||||||
|
server:
|
||||||
|
servlet:
|
||||||
|
context-path: /api
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
endpoint: http://minio.yuchat:9000
|
endpoint: http://minio.yuchat:9000
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user