Skip to content

Commit

Permalink
Feat: Add api for modify conference page.
Browse files Browse the repository at this point in the history
  • Loading branch information
huGgW committed Sep 11, 2023
1 parent 1a3c98d commit 1e84acb
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.wafflestudio.csereal.core.conference.api

import com.wafflestudio.csereal.common.aop.AuthenticatedStaff
import com.wafflestudio.csereal.core.conference.dto.ConferenceModifyRequest
import com.wafflestudio.csereal.core.conference.dto.ConferencePage
import com.wafflestudio.csereal.core.conference.service.ConferenceService
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import org.springframework.web.bind.annotation.*

@RequestMapping("/conference")
@RestController
Expand All @@ -18,4 +18,15 @@ class ConferenceController(
return ResponseEntity.ok(conferenceService.getConferencePage())
}

@AuthenticatedStaff
@PatchMapping("/page/conferences")
fun modifyConferencePage(
@RequestBody conferenceModifyRequest: ConferenceModifyRequest
): ResponseEntity<ConferencePage> {
return ResponseEntity.ok(
conferenceService.modifyConferences(
conferenceModifyRequest
)
)
}
}

0 comments on commit 1e84acb

Please sign in to comment.