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.
This commit is part of merge request !57. Comments created here will be created in the context of that merge request.
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