UNPKG

tbarequest

Version:

A wrapper to fetch data from The Blue Alliance API

13 lines (12 loc) 396 B
import { LeaderboardInsights, NotablesInsight } from "../schemas/insights.js"; import { type } from "arktype"; export const insightEndpoints = { "/insights/leaderboards/{year}": { schema: LeaderboardInsights.array(), arguments: type(["number"]), }, "/insights/notables/{year}": { schema: NotablesInsight.array(), arguments: type(["number"]), }, };