adds distance, duration, elevation gain to upload API

This commit is contained in:
Christian Beutel
2024-03-28 15:32:20 +01:00
parent 7662234ff4
commit 15dcc2a629
2 changed files with 66 additions and 5 deletions

View File

@@ -20,9 +20,9 @@ export async function PUT(event: RequestEvent) {
try {
await trails_create(trail, [], data, event.fetch);
} catch(e: any) {
} catch (e: any) {
console.log(e);
throw e
}
return json(trail);