Skip to content

Commit df6badc

Browse files
committed
Copied workflow page to an experimental path
1 parent 85388fe commit df6badc

File tree

2 files changed

+1097
-0
lines changed

2 files changed

+1097
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { getWorkflow } from '$lib/server/api/v1/workflow_api';
2+
import { getProject, getProjectDatasets } from '$lib/server/api/v1/project_api';
3+
4+
export async function load({ fetch, params }) {
5+
console.log('Load workflow page');
6+
7+
const { projectId, workflowId } = params;
8+
9+
// Get the project
10+
const project = await getProject(fetch, projectId);
11+
12+
// Get the workflow
13+
const workflow = await getWorkflow(fetch, projectId, workflowId);
14+
15+
// Get the datasets
16+
const datasets = await getProjectDatasets(fetch, projectId);
17+
18+
return {
19+
project,
20+
workflow,
21+
datasets
22+
};
23+
}

0 commit comments

Comments
 (0)