Add genlocke creation wizard with backend API and 4-step frontend
Implements the genlocke creation feature end-to-end: Genlocke and GenlockeLeg models with migration, POST /genlockes endpoint that creates the genlocke with all legs and auto-starts the first run, and a 4-step wizard UI (Name, Select Games with preset templates, Rules, Confirm) at /genlockes/new. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
10
frontend/src/api/genlockes.ts
Normal file
10
frontend/src/api/genlockes.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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')
|
||||
}
|
||||
Reference in New Issue
Block a user