minor fixes on confirmations
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package zw.qantra.tm.domain.controllers;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.cache.CacheManager;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -36,6 +37,13 @@ public class ConfigController {
|
||||
private final ProviderService providerService;
|
||||
private final CategoryService categoryService;
|
||||
private final IntegrationProcessorService integrationProcessorService;
|
||||
private final CacheManager cacheManager;
|
||||
|
||||
@GetMapping("/cache/clear")
|
||||
public ResponseEntity clearCache(){
|
||||
cacheManager.getCacheNames().forEach(name -> cacheManager.getCache(name).clear());
|
||||
return ResponseEntity.ok("Cache cleared");
|
||||
}
|
||||
|
||||
@GetMapping("/seed/live")
|
||||
public ResponseEntity seedLiveConfig(){
|
||||
|
||||
Reference in New Issue
Block a user