Files
aigen/server/api/loras.get.ts
T
TowstyandCursor 06e40793db Fix LoRA folder drops not appearing without weakening engine filters.
Stop empty Comfy blips from freezing the LoRA cache timestamp, and refresh the picker list from Comfy on each poll. Engine tagging (flux/krea) and xaigen platform filtering stay as they were.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 15:52:31 -05:00

11 lines
286 B
TypeScript

import { listStudioLoras } from '~/server/utils/loras'
export default defineEventHandler(async (event) => {
const fresh = String(getQuery(event).fresh || '') === '1'
const listed = await listStudioLoras({ fresh })
return {
image: listed.image,
video: listed.video
}
})