fix: Fixed romm login, now uses token
feat: Moved romm to internal plugin fix: Made focusing and navigation more reliable fix: Loading errors on first time launch
This commit is contained in:
parent
7c10f4e4c2
commit
816d50ae4d
81 changed files with 1659 additions and 1097 deletions
15
src/bun/api/games/collections.ts
Normal file
15
src/bun/api/games/collections.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import Elysia, { status } from "elysia";
|
||||
import { plugins } from "../app";
|
||||
|
||||
export default new Elysia()
|
||||
.get('/collections', async () =>
|
||||
{
|
||||
const collections: FrontEndCollection[] = [];
|
||||
await plugins.hooks.games.fetchCollections.promise({ collections });
|
||||
return collections;
|
||||
}).get('/collection/:source/:id', async ({ params: { source, id } }) =>
|
||||
{
|
||||
const collection = await plugins.hooks.games.fetchCollection.promise({ source, id });
|
||||
if (!collection) return status("Not Found");
|
||||
return collection;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue