Files
nuzlocke-tracker/frontend/src/api/genlockes.ts

11 lines
322 B
TypeScript
Raw Normal View History

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')
}