1a23f867da
* add tail log viewer routes * add log viewer * add _mealie to ignore directories * add detailed breakdown of storage * generate types * add dialog to view breakdown * cleanup mobile UI * move migrations page * spelling * init analytics page * move route up * add remove temp files function * analytics API client * stub out analytics pages * generate types * stub out analytics routes * update names * ignore types * temporary remove analytics from sidebar
14 lines
328 B
TypeScript
14 lines
328 B
TypeScript
import { BaseAPI } from "../_base";
|
|
import { MealieAnalytics } from "~/types/api-types/analytics";
|
|
|
|
const prefix = "/api";
|
|
|
|
const routes = {
|
|
base: `${prefix}/admin/analytics`,
|
|
};
|
|
|
|
export class AdminAnalyticsApi extends BaseAPI {
|
|
async getAnalytics() {
|
|
return await this.requests.get<MealieAnalytics>(routes.base);
|
|
}
|
|
}
|