Added missing config tests. Ready to pull. Other resposnes to fix in another task

This commit is contained in:
BuildTools
2020-12-01 17:31:55 +01:00
parent 7e45da1306
commit b2b9178bc1
2 changed files with 20 additions and 4 deletions

View File

@ -34,7 +34,7 @@ public class ConfigController {
private ConfiguratorService contrl;
@PostMapping("/config")
// @PreAuthorize("hasRole('ROLE_ADMIN')")
@PreAuthorize("hasRole('ROLE_ADMIN')")
@ApiOperation("Imports data to system. To call you need to provide ADMIN token")
public ResponseEntity<String> configApp(
@RequestParam("file") @ApiParam(value = "file .xlsx that contains courses and groups with apoinnted rules") MultipartFile file) {