Skip to content

Commit 56f7515

Browse files
committed
Start stubbing out API
1 parent 907a523 commit 56f7515

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

site/api.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
export interface Project {
2+
id: string
3+
name: string
4+
description: string
5+
}
6+
7+
export namespace Project {
8+
export const get = async (org: string): Promise<Project[]> => {
9+
const project1: Project = {
10+
id: "test-terraform-1",
11+
name: "Terraform Project 1",
12+
description: "Simple terraform project that deploys a kubernetes provider",
13+
}
14+
15+
const project2: Project = {
16+
id: "test-echo-1",
17+
name: "Echo Project",
18+
description: "Project built on echo provisioner",
19+
}
20+
21+
return Promise.resolve([project1, project2])
22+
}
23+
}

0 commit comments

Comments
 (0)