package com.tiesheng.demo.controller;

import com.tiesheng.annotation.token.TokenIgnore;
import com.tiesheng.util.pojos.ApiResp;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hao
 */
@RestController
@RequestMapping("/test")
public class TestController {


    @RequestMapping("/index")
    @TokenIgnore
    public ApiResp<String> index() {
        return ApiResp.respOK("hello world");
    }

}
