set method in realizations

This commit is contained in:
InsanusMokrassar committed 2020-11-18 20:27:34 +06:00
1 parent dd2fc5a86f
commit fcacdcd544
6 files changed
+54 -3

No files matched your search

@@ -61,4 +61,13 @@ fun <Key, Value> Route.configureOneToManyWriteKeyValueRepoRoutes(
originalRepo.clear(key),
)
}
post(setRoute) {
val obj = call.uniload(keyValueMapSerializer)
call.unianswer(
Unit.serializer(),
originalRepo.set(obj)
)
}
}