Loggest thy stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
732 B

import type { RequestHandler } from "@sveltejs/kit"
import type { StandaloneItem } from "$lib/models/item"
import type { StandaloneRequirement } from "$lib/models/project"
import type { ScopeEntry } from "$lib/models/scope"
import Status from "$lib/models/status"
import type { StandaloneSprint } from "$lib/models/sprint"
export const get: RequestHandler = async({locals}) => {
const scopes: ScopeEntry[] = locals.scopes;
const items: StandaloneItem[] = []
const requirements: StandaloneRequirement[] = []
const sprints: StandaloneSprint[] = []
return {
status: 200,
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
scopes, items, requirements, sprints
}),
}
}