mirror of
https://github.com/ivabus/gui
synced 2025-06-08 00:00:27 +03:00
make mock packages reusable
This commit is contained in:
parent
1cb37a8797
commit
acafea3842
1 changed files with 143 additions and 142 deletions
|
@ -6,8 +6,6 @@
|
|||
* * make cors work with api.tea.xyz/v1
|
||||
*/
|
||||
import type { Package } from '../types';
|
||||
|
||||
export async function getPackages(): Promise<Package[]> {
|
||||
const packages: Package[] = [
|
||||
{
|
||||
slug: 'mesonbuild_com',
|
||||
|
@ -150,5 +148,8 @@ export async function getPackages(): Promise<Package[]> {
|
|||
installs: 0
|
||||
}
|
||||
];
|
||||
|
||||
export async function getPackages(): Promise<Package[]> {
|
||||
|
||||
return packages;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue