完善项目
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.ping.study.controller.tx;
|
||||
|
||||
|
||||
import com.ping.study.service.tx.TxSportTokenRefreshService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/tx")
|
||||
public class TokenRefreshController {
|
||||
|
||||
@Autowired
|
||||
private TxSportTokenRefreshService txSportTokenRefreshService;
|
||||
|
||||
|
||||
@RequestMapping("/refresh")
|
||||
public Boolean refreshToken()
|
||||
{
|
||||
return txSportTokenRefreshService.refreshCookies();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user