this is my file structure and the api call code, it is working actually but the console complained about not finding a matching route