mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
13
server/src/dtos/system-config-map-theme.dto.ts
Normal file
13
server/src/dtos/system-config-map-theme.dto.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsEnum } from 'class-validator';
|
||||
|
||||
export enum MapTheme {
|
||||
LIGHT = 'light',
|
||||
DARK = 'dark',
|
||||
}
|
||||
|
||||
export class MapThemeDto {
|
||||
@IsEnum(MapTheme)
|
||||
@ApiProperty({ enum: MapTheme, enumName: 'MapTheme' })
|
||||
theme!: MapTheme;
|
||||
}
|
||||
Reference in New Issue
Block a user