zenno: use data from api
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import globalJSON from '../../../../global/uma.json';
|
||||
|
||||
/**
|
||||
* Uma or character card definitions.
|
||||
*/
|
||||
@@ -70,6 +68,7 @@ export interface Uma {
|
||||
|
||||
export type AptitudeLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
||||
|
||||
export const uma = {
|
||||
global: globalJSON as Uma[],
|
||||
};
|
||||
export async function uma(): Promise<Uma[]> {
|
||||
const resp = await fetch('/api/global/uma');
|
||||
return resp.json();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user