2021-01-23 22:03:06 +08:00
|
|
|
package com.ruoyi.web.controller.tool;
|
|
|
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* swagger 接口
|
2021-01-30 01:21:25 +08:00
|
|
|
*
|
2021-01-23 22:03:06 +08:00
|
|
|
* @author ruoyi
|
|
|
|
*/
|
|
|
|
@Controller
|
|
|
|
@RequestMapping("/tool/swagger")
|
2021-01-30 01:21:25 +08:00
|
|
|
public class SwaggerController extends BaseController {
|
2021-01-23 22:03:06 +08:00
|
|
|
@PreAuthorize("@ss.hasPermi('tool:swagger:view')")
|
|
|
|
@GetMapping()
|
2021-01-30 01:21:25 +08:00
|
|
|
public String index() {
|
2021-01-23 22:03:06 +08:00
|
|
|
return redirect("/swagger-ui.html");
|
|
|
|
}
|
|
|
|
}
|