fixing api routes that didnt follow format