- Add Nuxt 3 + Prisma + SQLite full-stack setup - Add student CRUD API with batch import/export - Add stats dashboard with gender/class distribution - Add target community settings feature - Add Docker deployment support (Dockerfile + docker-compose) - Add README with development and deployment instructions
11 lines
270 B
TypeScript
11 lines
270 B
TypeScript
import { prisma } from '~/server/utils/prisma'
|
|
|
|
export default defineEventHandler(async () => {
|
|
const settings = await prisma.settings.findMany()
|
|
const result: Record<string, string> = {}
|
|
settings.forEach(s => {
|
|
result[s.key] = s.value
|
|
})
|
|
return result
|
|
})
|