admin
2021-01-04 aa6ef62aef83e277d4171df1d9f0803f91738216
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.newvideo.controller.api;
 
import java.io.PrintWriter;
 
import javax.servlet.http.HttpServletRequest;
 
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
 
 
@Controller
@RequestMapping("/upload/img")
public class ImageController {
    @RequestMapping(value = "/{path}", method = RequestMethod.GET)
    public String ad(@PathVariable String path, HttpServletRequest request, PrintWriter out) {
//        return "redirect:" + OSSManager.getInstance().getUrl(path + ".jpg");
        return "";
    }
}