add api route for categories