Add editable medication planner UI and API

This commit is contained in:
Daniel Volz
2025-12-19 15:47:00 +01:00
parent a65e01c22a
commit dc1dd8c552
4 changed files with 338 additions and 194 deletions
+2
View File
@@ -8,6 +8,7 @@ import jwt from "@fastify/jwt";
import { env } from "./plugins/env.js";
import { healthRoutes } from "./routes/health.js";
import { authRoutes } from "./routes/auth.js";
import { medicationRoutes } from "./routes/medications.js";
const app = Fastify({
logger: {
@@ -54,6 +55,7 @@ await app.register(jwt, { secret: env.JWT_SECRET, cookie: { cookieName: "access_
await app.register(healthRoutes);
await app.register(authRoutes);
await app.register(medicationRoutes);
const start = async () => {
try {