package com.wecloud.im.core.common.controller;

import springfox.documentation.annotations.ApiIgnore;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.wecloud.im.core.log.annotation.OperationLogIgnore;
import com.wecloud.im.core.util.UUIDUtil;

/**
 * CSRF 供swagger调用
 *
 * @author geekidea
 * @date 2019/12/10
 **/
@ApiIgnore
@OperationLogIgnore
@RestController
public class CsrfController {

    @RequestMapping(value = "/csrf", method = {RequestMethod.GET, RequestMethod.POST})
    public String csrf() {
        return UUIDUtil.getUuid();
    }

}
