package com.zhongzheng.generator.controller;

import com.zhongzheng.common.exception.CustomException;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RequestMapping("/filter")
@RestController
public class FilterController {

    @RequestMapping("/token_auth_fail")
    public void loginAuthFail(HttpServletRequest request) {
        throw new AccessDeniedException("用户验证错误");
    }
}
