7 lines
184 B
TypeScript
7 lines
184 B
TypeScript
import { SidebarItem } from "@models/sidebarEntry";
|
|
|
|
export default cachedEventHandler(async (ev) => {
|
|
const si = await SidebarItem.find({});
|
|
return si.map((a) => a.toObject());
|
|
});
|