File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/java/git/tracehub/pmo/controller Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 27
27
import java .util .UUID ;
28
28
import lombok .RequiredArgsConstructor ;
29
29
import org .springframework .beans .factory .annotation .Value ;
30
+ import org .springframework .http .HttpStatus ;
30
31
import org .springframework .security .core .annotation .AuthenticationPrincipal ;
31
32
import org .springframework .security .oauth2 .jwt .Jwt ;
32
33
import org .springframework .web .bind .annotation .GetMapping ;
33
34
import org .springframework .web .bind .annotation .PathVariable ;
34
35
import org .springframework .web .bind .annotation .PostMapping ;
35
36
import org .springframework .web .bind .annotation .RequestBody ;
37
+ import org .springframework .web .bind .annotation .ResponseStatus ;
36
38
import org .springframework .web .bind .annotation .RestController ;
37
39
38
40
/**
@@ -102,6 +104,7 @@ public Project byId(@PathVariable final UUID id) {
102
104
* if project is public, every one can create it;
103
105
* otherwise we need to request a payment from the user.
104
106
*/
107
+ @ ResponseStatus (HttpStatus .CREATED )
105
108
public Project employ (
106
109
@ RequestBody final Project project ,
107
110
@ AuthenticationPrincipal final Jwt jwt
You can’t perform that action at this time.
0 commit comments