forked from creations/profilePage
add lazyload and move readme to func, add cache for readme and css
This commit is contained in:
parent
f6bda95f02
commit
10416dbff0
5 changed files with 116 additions and 112 deletions
|
@ -5,6 +5,7 @@ const routeDef: RouteDef = {
|
|||
method: "GET",
|
||||
accepts: "*/*",
|
||||
returns: "application/json",
|
||||
log: false,
|
||||
};
|
||||
|
||||
async function fetchSteamGridIcon(gameName: string): Promise<string | null> {
|
||||
|
@ -53,7 +54,10 @@ async function fetchSteamGridIcon(gameName: string): Promise<string | null> {
|
|||
async function handler(request: ExtendedRequest): Promise<Response> {
|
||||
if (!steamGridDbKey) {
|
||||
return Response.json(
|
||||
{ status: 503, error: "Route disabled due to missing SteamGridDB key" },
|
||||
{
|
||||
status: 503,
|
||||
error: "Route disabled due to missing SteamGridDB key",
|
||||
},
|
||||
{ status: 503 },
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue