add some assets
This commit is contained in:
@@ -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();
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user