import { ServerAPICall } from '../../shared/models/ServerAPICall' ; import { Game } from '../core/game/game' ; export class FestivalsAPICall extends ServerAPICall { static desc = 'Get the current festivals running in game' ; static params = '' ; static init ( app , game ) { app . get ( '/festivals' , async ( req , res ) => { const festivals = ( game . festivalManager as any ) . festivals . festivals ; res . json ( { festivals } ) ; } ) ; } }