Skip to content
Snippets Groups Projects
Verified Commit 53665ebc authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Api call to get list of seniors.

parent 4b86a283
No related branches found
No related tags found
2 merge requests!60New component to search senior (see #12). Enhance responsiveness and solve #10 and #11,!57Replace context with api.
import axios from 'axios';
export const getSeniorList = async (name: string): Promise<string[]> =>
axios.get(`/api/web/seniors/by_name/${name}`).then((res) => res.data);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment