Added a global search bar

This commit is contained in:
Muhammad Ibrahim
2025-10-02 07:03:10 +01:00
parent 65025b50cf
commit 7a8e9d95a0
5 changed files with 692 additions and 3 deletions

View File

@@ -259,4 +259,9 @@ export const formatRelativeTime = (date) => {
return `${seconds} second${seconds > 1 ? "s" : ""} ago`;
};
// Search API
export const searchAPI = {
global: (query) => api.get("/search", { params: { q: query } }),
};
export default api;