Feat: Path suggestion when creating a project

This commit is contained in:
simos
2025-09-11 12:40:25 +00:00
parent e5709d71e0
commit 4ca78ba69a
4 changed files with 375 additions and 25 deletions

View File

@@ -128,6 +128,14 @@ export const api = {
}),
},
// Browse filesystem for project suggestions
browseFilesystem: (dirPath = null) => {
const params = new URLSearchParams();
if (dirPath) params.append('path', dirPath);
return authenticatedFetch(`/api/browse-filesystem?${params}`);
},
// Generic GET method for any endpoint
get: (endpoint) => authenticatedFetch(`/api${endpoint}`),
};