mirror of
https://github.com/immich-app/immich.git
synced 2026-05-13 10:52:16 -04:00
chore!: remove /api/server/theme endpoint (#27880)
chore: remove server/theme endpoint
This commit is contained in:
@@ -10550,44 +10550,6 @@
|
||||
"x-immich-state": "Stable"
|
||||
}
|
||||
},
|
||||
"/server/theme": {
|
||||
"get": {
|
||||
"description": "Retrieve the custom CSS, if existent.",
|
||||
"operationId": "getTheme",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ServerThemeDto"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"summary": "Get theme",
|
||||
"tags": [
|
||||
"Server"
|
||||
],
|
||||
"x-immich-history": [
|
||||
{
|
||||
"version": "v1",
|
||||
"state": "Added"
|
||||
},
|
||||
{
|
||||
"version": "v1",
|
||||
"state": "Beta"
|
||||
},
|
||||
{
|
||||
"version": "v2",
|
||||
"state": "Stable"
|
||||
}
|
||||
],
|
||||
"x-immich-state": "Stable"
|
||||
}
|
||||
},
|
||||
"/server/version": {
|
||||
"get": {
|
||||
"description": "Retrieve the current server version in semantic versioning (semver) format.",
|
||||
@@ -21373,18 +21335,6 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ServerThemeDto": {
|
||||
"properties": {
|
||||
"customCss": {
|
||||
"description": "Custom CSS for theming",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"customCss"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ServerVersionHistoryResponseDto": {
|
||||
"properties": {
|
||||
"createdAt": {
|
||||
|
||||
@@ -2123,10 +2123,6 @@ export type ServerStorageResponseDto = {
|
||||
/** Used disk space in bytes */
|
||||
diskUseRaw: number;
|
||||
};
|
||||
export type ServerThemeDto = {
|
||||
/** Custom CSS for theming */
|
||||
customCss: string;
|
||||
};
|
||||
export type ServerVersionResponseDto = {
|
||||
/** Major version number */
|
||||
major: number;
|
||||
@@ -5643,17 +5639,6 @@ export function getStorage(opts?: Oazapfts.RequestOpts) {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
/**
|
||||
* Get theme
|
||||
*/
|
||||
export function getTheme(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: ServerThemeDto;
|
||||
}>("/server/theme", {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
/**
|
||||
* Get server version
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user