add api to routes