diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-29 21:49:56 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-29 21:49:56 -0600 |
commit | ac0d9f421f1304306d9b3a264a225966fa9d5677 (patch) | |
tree | 4673c200a6ccc318b49ac6d42cb87ff123204d1f /src/api | |
parent | e0ce800a647a1b173979f0e7f20d1d54b9f9bd7d (diff) | |
download | ToDo-App-FE-ac0d9f421f1304306d9b3a264a225966fa9d5677.tar.gz ToDo-App-FE-ac0d9f421f1304306d9b3a264a225966fa9d5677.zip |
IT NOW HAS PAGING.
Diffstat (limited to '')
-rw-r--r-- | src/api/axios_methods.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/axios_methods.js b/src/api/axios_methods.js index 822c334..bea8b79 100644 --- a/src/api/axios_methods.js +++ b/src/api/axios_methods.js @@ -126,10 +126,10 @@ export function get_todos_page_function() { export function get_nu_pages_function() { // Return the number of pages in total. // GET "/todos/filtSort/pages" - return async () => { + return async (handler) => { try { const response = await api.get("/todos/filtSort/pages"); - return response.data; + handler(response.data); } catch (err) { console.log(err); } |