resolved router to use /api/