Add OpenAPI route and server

This commit is contained in:
2020-02-04 16:45:54 +01:00
parent 77658c5f6b
commit 42a41da066
6 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package fr.dcproject.utils
fun String.readResource(callbak: (String) -> Unit = {}): String {
val content = callbak::class.java.getResource(this).readText()
callbak(content)
return content
}