router api now working

can now call for events using /api/