mirror of
https://github.com/StepanovPlaton/torrent_frontend.git
synced 2026-04-03 20:30:48 +04:00
Add game cards and dev reverse proxy
This commit is contained in:
11
src/entities/game/game.ts
Normal file
11
src/entities/game/game.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { HTTPService } from "@/shared/http/httpService";
|
||||
import { gameCardsSchema, GameCardType } from "./schemas/gameCard";
|
||||
|
||||
export abstract class GameService {
|
||||
public static async getGameCards() {
|
||||
return await HTTPService.get<GameCardType[]>(
|
||||
"/games/cards",
|
||||
gameCardsSchema
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user