Skip to content

Commit

Permalink
fix request sending to incorrect endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
emmaboecker committed May 7, 2023
1 parent 9e80dd6 commit 7b8ffca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "net.cherrycave"
version = "0.4.0"
version = "0.4.1"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import net.cherrycave.birgid.utils.implementation

@OptIn(Internal::class)
public suspend fun GertrudClient.sendRequest(players: List<SerializableUUID>, server: String): Result<Unit> {
val result = implementation.httpClient.post(implementation.buildUrl() + "/commands/servers/sendRequest") {
val result = implementation.httpClient.post(implementation.buildUrl() + "/commands/servers/send") {
setBody(SendRequest(players, server))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlinx.serialization.encoding.Encoder

internal typealias SerializableUUID = @Serializable(with = UUIDSerializer::class) java.util.UUID

private class UUIDSerializer : KSerializer<java.util.UUID> {
internal class UUIDSerializer : KSerializer<java.util.UUID> {
override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("UUID", PrimitiveKind.STRING)

override fun serialize(encoder: Encoder, value: java.util.UUID) {
Expand Down

0 comments on commit 7b8ffca

Please sign in to comment.