We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4bf415 commit daf771eCopy full SHA for daf771e
1 file changed
frontend/src/services/departmentService.js
@@ -10,7 +10,7 @@ export const getAllDepartments = async () => {
10
};
11
12
export const searchDepartments = async (query) => {
13
- const response = await axios.get(`${API_URL}?q=${encodeURIComponent(query)}`);
+ const response = await axios.get(`${API_URL}/search?name=${encodeURIComponent(query)}`);
14
return response.data;
15
16
0 commit comments