Added tests and service

This commit is contained in:
BuildTools
2020-11-20 15:56:43 +01:00
parent 3e7086eab9
commit b4bb13f2dd
4 changed files with 50 additions and 31 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) {