1

Add createLecture feature

also add private checkbox again and delete the uploadCsv methods in APIController

Co-Authored-By: tomvahl <tomvahl@users.noreply.github.com>
Co-Authored-By: andibuls <andibuls@users.noreply.github.com>
Co-Authored-By: Lukas Ettel <lukasettel@users.noreply.github.com>
This commit is contained in:
XXNitram
2020-03-18 14:13:58 +01:00
parent 051196f766
commit 0db03f2ab5
4 changed files with 44 additions and 22 deletions

View File

@ -60,13 +60,4 @@ public class APIController {
return groups.get(0);
}
@PostMapping(value = "/uploadcsv", consumes = "text/csv")
public void uploadCsv(@RequestBody InputStream body) throws IOException {
System.out.println(CsvService.read(body));
}
@PostMapping(value = "/uploadcsv", consumes = "multipart/form-data")
public void uploadMultipart(@RequestParam("file") MultipartFile file) throws IOException {
System.out.println(CsvService.read(file.getInputStream()));
}
}