RuoYi/src/main/java/com/ruoyi/project/tool/swagger/SwaggerController.java
2018-05-31 13:00:34 +08:00

25 lines
635 B
Java

package com.ruoyi.project.tool.swagger;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.ruoyi.framework.web.controller.BaseController;
/**
* swagger 接口
*
* @author ruoyi
*/
@Controller
@RequestMapping("/tool/swagger")
public class SwaggerController extends BaseController
{
@RequiresPermissions("tool:swagger:view")
@GetMapping()
public String index()
{
return "redirect:" + "/swagger-ui.html";
}
}