Fix get all commet of article
This commit is contained in:
@@ -98,6 +98,13 @@ fun Application.module(env: Env = PROD) {
|
||||
} ?: throw NotFoundException("Comment $values not found")
|
||||
}
|
||||
}
|
||||
convert<ConstitutionRef> {
|
||||
decode { values, _ ->
|
||||
values.singleOrNull()?.let {
|
||||
ConstitutionRef(UUID.fromString(it))
|
||||
} ?: throw NotFoundException("Constitution $values not found")
|
||||
}
|
||||
}
|
||||
|
||||
convert<Constitution> {
|
||||
decode { values, _ ->
|
||||
|
||||
Reference in New Issue
Block a user