next/lib/client/science.ts

4 lines
102 B
TypeScript
Raw Permalink Normal View History

export const recordView = async (sid: number) => {
await useApiFetch(`/story/${sid}/set-viewed`);
};