Skip to content

Commit

Permalink
Fixed typo on embed endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
LotuxPunk committed Jun 1, 2024
1 parent ab860f5 commit dd5b1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/be/vandeas/plugins/Routing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fun Application.configureRouting() {
}
}

get("/embed/") {
get("/embed") {
val path = call.request.queryParameters["path"] ?: ""
val fileName = call.request.queryParameters["fileName"] ?: ""
val authorization = call.request.queryParameters["token"] ?: call.request.authorization() ?: throw IllegalArgumentException("Authorization header is required")
Expand Down

0 comments on commit dd5b1d1

Please sign in to comment.