Skip to content

Commit a056466

Browse files
committed
feat(TaskController): changing the status content
1 parent 6f35eed commit a056466

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
</properties>
2020
<dependencies>
2121

22+
<dependency>
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-devtools</artifactId>
25+
<optional>true</optional>
26+
</dependency>
27+
28+
2229
<dependency>
2330
<groupId>org.springframework.boot</groupId>
2431
<artifactId>spring-boot-starter-actuator</artifactId>

src/main/java/br/com/leticiamangueira/todolist/user/UserController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public ResponseEntity create(@RequestBody UserModel userModel) {
3030
userModel.setPassword(passwordHashred);
3131

3232
var userCreated = this.userRepository.save(userModel);
33-
return ResponseEntity.status(HttpStatus.CREATED).body(userCreated);
33+
return ResponseEntity.status(HttpStatus.OK).body(userCreated);
3434
}
3535
}

0 commit comments

Comments
 (0)