Clean up previous project display

This commit is contained in:
Dave
2026-02-16 19:53:31 +00:00
parent 8ed40dd444
commit e6638a6517
4 changed files with 96 additions and 28 deletions

View File

@@ -89,6 +89,13 @@ export const api = {
getKnownProjects(baseUrl?: string) {
return requestJson<string[]>("/projects", {}, baseUrl);
},
forgetKnownProject(path: string, baseUrl?: string) {
return requestJson<boolean>(
"/projects/forget",
{ method: "POST", body: JSON.stringify({ path }) },
baseUrl,
);
},
openProject(path: string, baseUrl?: string) {
return requestJson<string>(
"/project",