Add security on endpoints and handle 403 responses.

This commit is contained in:
Florian THIERRY committed 2023-11-30 14:56:03 +01:00
1 parent 96345c703a
commit 920fbe489d
7 files changed
+60 -23

No files matched your search

@@ -1,12 +1,10 @@
package org.sportshub.exposition.user;
import java.util.List;
import java.util.Optional;
import org.sportshub.application.user.UserUseCases;
import org.sportshub.domain.user.model.User;
import org.sportshub.exposition.user.model.LoginRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;