feat: implement blood glucose tracking form and API with MariaDB database support
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { auth } from "@/lib/auth";
|
||||
import { prisma } from "@/lib/prisma";
|
||||
import type { Moment } from "@/lib/glycemia";
|
||||
import { MOMENTS, type Moment } from "@/lib/glycemia";
|
||||
|
||||
const VALID_MOMENTS: Moment[] = ["FASTING", "LUNCH", "DINNER"];
|
||||
const VALID_MOMENTS = MOMENTS.map(m => m.value);
|
||||
|
||||
export async function GET(request: Request) {
|
||||
const session = await auth();
|
||||
|
||||
Reference in New Issue
Block a user