Skip to content

Commit

Permalink
fix: Allow OPTIONS for /conference-request.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Oct 28, 2024
1 parent 7431511 commit 9323898
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jicofo/src/main/kotlin/org/jitsi/jicofo/ktor/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import io.ktor.server.response.respondText
import io.ktor.server.routing.Route
import io.ktor.server.routing.RoutingCall
import io.ktor.server.routing.get
import io.ktor.server.routing.options
import io.ktor.server.routing.post
import io.ktor.server.routing.route
import io.ktor.server.routing.routing
Expand Down Expand Up @@ -144,6 +145,9 @@ class Application(

private fun Route.conferenceRequest() {
if (config.enableConferenceRequest) {
options("/conference-request/v1") {
call.respond(HttpStatusCode.OK)
}
post("/conference-request/v1") {
val request = try {
call.receive<ConferenceRequest>()
Expand Down

0 comments on commit 9323898

Please sign in to comment.