Skip to content

Commit

Permalink
update :: response http status 201
Browse files Browse the repository at this point in the history
  • Loading branch information
JuuuuHong committed Aug 29, 2024
1 parent bc72562 commit f3d2acf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package team.msg.domain.admin.presentation

import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.*
import org.springframework.web.multipart.MultipartFile
Expand Down Expand Up @@ -43,12 +44,12 @@ class AdminController(
@PostMapping("/student/excel")
fun uploadStudentListExcel(@RequestPart file: MultipartFile): ResponseEntity<Unit> {
adminService.uploadStudentListExcel(file)
return ResponseEntity.ok().build()
return ResponseEntity.status(HttpStatus.CREATED).build()
}

@PostMapping("/club/excel")
fun uploadClubListExcel(@RequestPart file: MultipartFile): ResponseEntity<Unit> {
adminService.uploadClubListExcel(file)
return ResponseEntity.ok().build()
return ResponseEntity.status(HttpStatus.CREATED).build()
}
}

0 comments on commit f3d2acf

Please sign in to comment.