mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-15 09:33:56 -07:00
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Docker Nightly Production / Backend Server Tests (push) Waiting to run
Docker Nightly Production / Frontend Tests (push) Waiting to run
Docker Nightly Production / Build Package (push) Waiting to run
Docker Nightly Production / Build Tagged Release (push) Blocked by required conditions
Docker Nightly Production / Notify Discord (push) Blocked by required conditions
Release Drafter / ✏️ Draft release (push) Waiting to run
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com> Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
30 lines
837 B
TypeScript
30 lines
837 B
TypeScript
import { BaseAPI } from "../base/base-clients";
|
|
import type { AdminAboutInfo, CheckAppConfig } from "~/lib/api/types/admin";
|
|
|
|
const prefix = "/api";
|
|
|
|
const routes = {
|
|
about: `${prefix}/admin/about`,
|
|
aboutStatistics: `${prefix}/admin/about/statistics`,
|
|
check: `${prefix}/admin/about/check`,
|
|
docker: `${prefix}/admin/about/docker/validate`,
|
|
validationFile: `${prefix}/media/docker/validate.txt`,
|
|
};
|
|
|
|
export class AdminAboutAPI extends BaseAPI {
|
|
async about() {
|
|
return await this.requests.get<AdminAboutInfo>(routes.about);
|
|
}
|
|
|
|
async statistics() {
|
|
return await this.requests.get(routes.aboutStatistics);
|
|
}
|
|
|
|
async checkApp() {
|
|
return await this.requests.get<CheckAppConfig>(routes.check);
|
|
}
|
|
|
|
async getDockerValidateFileContents() {
|
|
return await this.requests.get<string>(routes.validationFile);
|
|
}
|
|
}
|