add some assets

This commit is contained in:
2026-02-06 16:53:07 +01:00
parent adf3d13ab0
commit 030de7bfbe
6 changed files with 232 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { handleSteamRefresh, handleConfigLoad } from "./server/steam-api.mjs";
import { handleGameAsset } from "./server/assets-api.mjs";
const apiMiddlewarePlugin = {
name: "api-middleware",
@@ -13,6 +14,9 @@ const apiMiddlewarePlugin = {
if (url.startsWith("/api/config/load")) {
return handleConfigLoad(req, res);
}
if (url.startsWith("/api/games/")) {
return handleGameAsset(req, res);
}
next();
});
},