Star count
This commit is contained in:
8
src/routes/+page.server.ts
Normal file
8
src/routes/+page.server.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type {PageServerLoad} from "./$types";
|
||||
import getStars from "$lib/getStars";
|
||||
|
||||
export const load: PageServerLoad = async () => {
|
||||
return {
|
||||
starCount: await getStars('anatolykopyl')
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user