mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-13 06:21:21 -05:00
13 lines
399 B
TypeScript
13 lines
399 B
TypeScript
import { json, type SerializeFrom } from "@remix-run/node";
|
|
import { findAllEventsWithMapPools } from "~/db/models/calendar/queries.server";
|
|
|
|
export const loader = () => {
|
|
return json({
|
|
events: findAllEventsWithMapPools(),
|
|
});
|
|
};
|
|
|
|
export type EventsWithMapPoolsLoaderData = SerializeFrom<typeof loader>;
|
|
export type SerializedMapPoolEvent =
|
|
EventsWithMapPoolsLoaderData["events"][number];
|