mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
parent
fcc3b81745
commit
25c9b779e4
6 changed files with 28 additions and 8 deletions
|
|
@ -2422,13 +2422,15 @@ export function getConfigDefaults(opts?: Oazapfts.RequestOpts) {
|
|||
...opts
|
||||
}));
|
||||
}
|
||||
export function getMapStyle({ theme }: {
|
||||
export function getMapStyle({ key, theme }: {
|
||||
key?: string;
|
||||
theme: MapTheme;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: object;
|
||||
}>(`/system-config/map/style.json${QS.query(QS.explode({
|
||||
key,
|
||||
theme
|
||||
}))}`, {
|
||||
...opts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue