fully stub out export

This commit is contained in:
Ean Milligan
2026-04-10 16:46:09 -04:00
parent 7b84e3b949
commit f1a8e3497d
2 changed files with 8 additions and 2 deletions

4
mod.ts
View File

@@ -75,7 +75,7 @@ Deno.serve({ port: config.api.port }, async (req) => {
return genericResponse(STATUS_CODE.OK, JSON.stringify(plans));
} else if (path.startsWith('/export/')) {
const userId = path.replace('/list/', '');
const userId = path.replace('/export/', '');
const userMatch = await dbClient.query('SELECT id FROM users WHERE id = ?', [userId]).catch(() => {
failed = true;
});
@@ -83,7 +83,7 @@ Deno.serve({ port: config.api.port }, async (req) => {
if (!userMatch.length) return genericResponse(STATUS_CODE.NotFound, 'User ID does not exist.');
// WIP: export plans to zip code goes here
return genericResponse(STATUS_CODE.NotImplemented, 'WIP');
return genericResponse(STATUS_CODE.NotImplemented, 'Export function WIP.');
}
} else if (req.method === 'POST' && path === '/enroll') {
const body = await req.json();