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