next/lib/server/forumId.ts

13 lines
287 B
TypeScript
Raw Normal View History

import { apiRoot } from "./constants";
export default async function (id: number): Promise<number> {
2023-12-29 20:11:07 -05:00
let { data: lookup } = await useFetch<any>(`${apiRoot}/session-sharing/lookup`, {
method: "get",
query: {
params: {
id,
},
},
2023-12-29 20:11:07 -05:00
});
return lookup.value.uid as number;
}