reformat code
This commit is contained in:
+5
-1
@@ -20,7 +20,11 @@ fun Route.setupSearch(searchFactory: SearchRepositoryFactory) {
|
||||
val p = call.parameters
|
||||
val userId = call.obtainUserId()
|
||||
val search = searchFactory.create(userId)
|
||||
call.respond(SearchQueryResponse(search.search(p[SearchRepository.QUERY_ARG] ?: "").first()))
|
||||
call.respond(
|
||||
SearchQueryResponse(
|
||||
search.search(p[SearchRepository.QUERY_ARG] ?: "").first()
|
||||
)
|
||||
)
|
||||
}
|
||||
post(SearchRepository.ADD_TO_SEARCH) {
|
||||
val userId = call.obtainUserId()
|
||||
|
||||
Reference in New Issue
Block a user