Files
NBA/src/main/java/com/ping/study/controller/tx/TokenRefreshController.java
2025-04-21 13:14:50 +08:00

25 lines
661 B
Java

package com.ping.study.controller.tx;
import com.ping.study.service.tx.TxSportTokenRefreshService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
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("/cookie/refresh")
public Boolean refreshToken()
{
return txSportTokenRefreshService.refreshCookies();
}
}