mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 16:22:39 +10:00
feat: beginnings of platform & redist management
This commit is contained in:
@ -7,9 +7,15 @@ export default defineEventHandler(async (h3) => {
|
||||
|
||||
const unimportedGames = await libraryManager.fetchUnimportedGames();
|
||||
const games = await libraryManager.fetchGamesWithStatus();
|
||||
const redists = await libraryManager.fetchRedistsWithStatus();
|
||||
const libraries = await libraryManager.fetchLibraries();
|
||||
|
||||
// Fetch other library data here
|
||||
|
||||
return { unimportedGames, games, hasLibraries: libraries.length > 0 };
|
||||
return {
|
||||
unimportedGames,
|
||||
games,
|
||||
redists,
|
||||
hasLibraries: libraries.length > 0,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user