Skip to content

Commit daf771e

Browse files
committed
Update departmentService.js
1 parent d4bf415 commit daf771e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/services/departmentService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const getAllDepartments = async () => {
1010
};
1111

1212
export const searchDepartments = async (query) => {
13-
const response = await axios.get(`${API_URL}?q=${encodeURIComponent(query)}`);
13+
const response = await axios.get(`${API_URL}/search?name=${encodeURIComponent(query)}`);
1414
return response.data;
1515
};
1616

0 commit comments

Comments
 (0)