Allow browsing projects my HEAD

This commit is contained in:
Alexis Sellier
2021-06-11 09:52:33 +02:00
parent 9d557eacb9
commit c76e42d493
4 changed files with 127 additions and 88 deletions
+6 -1
View File
@@ -10,6 +10,11 @@ export interface Project {
};
}
export interface Info {
head: string;
meta: Meta;
}
export interface Meta {
name: string;
description: string;
@@ -61,7 +66,7 @@ export interface Tree {
path: string;
}
export async function getMetadata(urn: string, config: Config): Promise<Meta | null> {
export async function getInfo(urn: string, config: Config): Promise<Info | null> {
return api.get(`projects/${urn}`, config);
}