Compare commits

...

2 Commits

Author SHA1 Message Date
Raymond Yang
d3ae86b18d 修正CORS不允許delete 2023-06-27 15:56:08 +08:00
Raymond Yang
662aa4902d 修正成員put method 2023-06-27 15:54:28 +08:00
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ fun Application.configureHTTP() {
allowMethod(HttpMethod.Options) allowMethod(HttpMethod.Options)
allowMethod(HttpMethod.Get) allowMethod(HttpMethod.Get)
allowMethod(HttpMethod.Put) allowMethod(HttpMethod.Put)
//allowMethod(HttpMethod.Delete) allowMethod(HttpMethod.Delete)
allowMethod(HttpMethod.Post) allowMethod(HttpMethod.Post)
allowHeader(HttpHeaders.AccessControlAllowOrigin) allowHeader(HttpHeaders.AccessControlAllowOrigin)
allowHeader(HttpHeaders.Accept) allowHeader(HttpHeaders.Accept)

View File

@ -58,6 +58,7 @@ fun Application.configureMemberRouting() {
nickName = member.nickName nickName = member.nickName
discordID = member.discordID discordID = member.discordID
uid = member.uid uid = member.uid
leave = member.leave
updatedAt = System.currentTimeMillis() updatedAt = System.currentTimeMillis()
} }
MemberService.updateById(id, oldData) MemberService.updateById(id, oldData)