|
|
@ -14,7 +14,7 @@ namespace _24Hour.Controllers.Common |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// 视频举报 |
|
|
|
/// 视频举报 |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
[Authorize] |
|
|
|
//[Authorize] |
|
|
|
[ApiController] |
|
|
|
[ApiController] |
|
|
|
[Route("api/Video")] |
|
|
|
[Route("api/Video")] |
|
|
|
public class VideoController : Controller |
|
|
|
public class VideoController : Controller |
|
|
@ -256,6 +256,8 @@ namespace _24Hour.Controllers.Common |
|
|
|
/// <exception cref="Exception"></exception> |
|
|
|
/// <exception cref="Exception"></exception> |
|
|
|
[HttpGet] |
|
|
|
[HttpGet] |
|
|
|
[Route("Download")] |
|
|
|
[Route("Download")] |
|
|
|
|
|
|
|
[AllowAnonymous] |
|
|
|
|
|
|
|
|
|
|
|
public FileResult Download(string path) |
|
|
|
public FileResult Download(string path) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var dic = Path.Combine(Environment.CurrentDirectory, "wwwroot"); |
|
|
|
var dic = Path.Combine(Environment.CurrentDirectory, "wwwroot"); |
|
|
|