mirror of https://github.com/halo-dev/halo
Add a fetch theme configuration by theme id api
parent
67409cb792
commit
6a97628ffa
|
@ -87,11 +87,16 @@ public class ThemeController {
|
||||||
return BaseResponse.ok(themeService.fetchConfig(themeService.getActivatedThemeId()));
|
return BaseResponse.ok(themeService.fetchConfig(themeService.getActivatedThemeId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("{themeId}/configurations")
|
||||||
|
@ApiOperation("Fetches theme configuration by theme id")
|
||||||
|
public BaseResponse<Object> fetchConfig(@PathVariable("themeId") String themeId) {
|
||||||
|
return BaseResponse.ok(themeService.fetchConfig(themeId));
|
||||||
|
}
|
||||||
|
|
||||||
@DeleteMapping("{themeId}")
|
@DeleteMapping("{themeId}")
|
||||||
@ApiOperation("Deletes a theme")
|
@ApiOperation("Deletes a theme")
|
||||||
public void deleteBy(@PathVariable("themeId") String themeId) {
|
public void deleteBy(@PathVariable("themeId") String themeId) {
|
||||||
themeService.deleteTheme(themeId);
|
themeService.deleteTheme(themeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue