Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making config and callbacks not private #186

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class TbdexHttpServerConfig(
*
* @property config The configuration for the server, including port and optional APIs.
*/
class TbdexHttpServer(private val config: TbdexHttpServerConfig) {
private val getCallbacks: MutableMap<String, GetCallback> = mutableMapOf()
private val submitCallbacks: MutableMap<String, SubmitCallback> = mutableMapOf()
class TbdexHttpServer(val config: TbdexHttpServerConfig) {
val getCallbacks: MutableMap<String, GetCallback> = mutableMapOf()
val submitCallbacks: MutableMap<String, SubmitCallback> = mutableMapOf()
private var embedded = embeddedServer(Netty, port = config.port) {
configure(this)
}
Expand Down Expand Up @@ -96,8 +96,9 @@ class TbdexHttpServer(private val config: TbdexHttpServerConfig) {
app.routing {
get("/") {
call.respond(
HttpStatusCode.OK, "Please use the tbdex protocol to communicate with this server " +
"or a suitable library: https://github.com/TBD54566975/tbdex-protocol"
HttpStatusCode.OK, "Please use the tbdex protocol " +
"via a suitable library to communicate with this server: " +
"https://github.com/TBD54566975/tbdex-protocol"
)
}

Expand Down
Loading