17 lines
419 B
TypeScript
17 lines
419 B
TypeScript
import { os } from "@orpc/server";
|
|
import { getLegalConfig } from "../lib/legal-config.js";
|
|
|
|
export const router = {
|
|
getConfig: os.handler(async () => {
|
|
console.log("Legal getConfig called");
|
|
try {
|
|
const config = getLegalConfig();
|
|
console.log("Legal config:", config);
|
|
return config;
|
|
} catch (error) {
|
|
console.error("Legal config error:", error);
|
|
throw error;
|
|
}
|
|
}),
|
|
};
|