Migrated read APIs to Nitro

This commit is contained in:
lucast committed 2026-09-29 00:34:50 +02:00
1 parent eb4e9f0700
commit ee5809a489
26 files changed
+558

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import mongoose, { Schema, type Model } from "mongoose"
const artistSchema = new Schema({
name: { type: String, required: true },
file: { type: String, required: true },
})
export const Artist =
(mongoose.models.Artist as Model<any> | undefined) ??
(mongoose.model<any>("Artist", artistSchema) as Model<any>)