Files
BYW-VoiceHub/server/api/auth/grade-class-options.get.ts
T

12 lines
309 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { fetchGradeClassOptions } from '~~/server/utils/grade-class-options'
// 公开的年级班级选项接口(注册表单使用,无需 binding-token)
export default defineEventHandler(async () => {
const classes = await fetchGradeClassOptions()
return {
success: true,
classes
}
})