Add a fetch theme configuration by theme id api

pull/146/head
johnniang 2019-04-09 14:01:10 +08:00
parent 67409cb792
commit 6a97628ffa
1 changed files with 6 additions and 1 deletions

View File

@ -87,11 +87,16 @@ public class ThemeController {
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}")
@ApiOperation("Deletes a theme")
public void deleteBy(@PathVariable("themeId") String themeId) {
themeService.deleteTheme(themeId);
}
}