4 lines
102 B
TypeScript

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