feat: add daily chess puzzle page
All checks were successful
Deploy blog-frontend / build-and-deploy (push) Successful in 2m29s

This commit is contained in:
wypark
2026-05-29 00:18:05 +09:00
parent 4bc0441490
commit ab585b5faa
8 changed files with 516 additions and 0 deletions

10
src/api/chess.ts Normal file
View File

@@ -0,0 +1,10 @@
import { http } from './http';
import { ApiResponse, ChessPuzzle } from '@/types';
export const getTodayChessPuzzle = async (timezone = 'Asia/Seoul') => {
const response = await http.get<ApiResponse<ChessPuzzle>>('/api/chess-puzzles/today', {
params: { timezone },
});
return response.data.data;
};