11 lines
322 B
TypeScript
11 lines
322 B
TypeScript
|
|
import { api } from './client'
|
||
|
|
import type { Genlocke, CreateGenlockeInput, Region } from '../types/game'
|
||
|
|
|
||
|
|
export function createGenlocke(data: CreateGenlockeInput): Promise<Genlocke> {
|
||
|
|
return api.post('/genlockes', data)
|
||
|
|
}
|
||
|
|
|
||
|
|
export function getGamesByRegion(): Promise<Region[]> {
|
||
|
|
return api.get('/games/by-region')
|
||
|
|
}
|