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:
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user