edited api routes