更新视频 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}")
|
||||
public JsonResult<MadouVideoInfo> getMadouVideoById(@PathVariable Long id) {
|
||||
MadouVideoInfo madouVideoInfo = madouVideoService.getById(id);
|
||||
madouVideoInfo.setM3u8Url("/video/" + id + "/index.m3u8");
|
||||
madouVideoInfo.setM3u8Url("/api/video/" + id + "/index.m3u8");
|
||||
return JsonResult.ok(madouVideoInfo);
|
||||
}
|
||||
|
||||
|
||||
@ -9,7 +9,4 @@ spring:
|
||||
# 日志级别,生产环境改为warn
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
server:
|
||||
servlet:
|
||||
context-path: /api
|
||||
root: info
|
||||
@ -1,4 +1,6 @@
|
||||
|
||||
server:
|
||||
servlet:
|
||||
context-path: /api
|
||||
|
||||
minio:
|
||||
endpoint: http://minio.yuchat:9000
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user