API router hooked up to async middleware stack