importapifrom"./axios_config";// findAll() on Back End.exportfunctionget_todos_function(hook){// Get a list of all to dos.// GET "/v1/todos"returnasync()=>{try{constresponse=awaitapi.get("/v1/todos");hook(response.data);}catch(err){console.log(err);}};}