changed routing to add api prefix