We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2defa2 commit 5b1ed02Copy full SHA for 5b1ed02
api/server/src/main/kotlin/Routing.kt
@@ -232,7 +232,7 @@ private fun stats(): Route.() -> Unit = {
232
a("download/$k.har") { +"download" }
233
}
234
td {
235
- form(action = k, method = FormMethod.delete) {
+ form(action = k, method = FormMethod.post) {
236
button(type = ButtonType.submit) { +"Delete" }
237
238
@@ -256,7 +256,7 @@ private fun stats(): Route.() -> Unit = {
256
call.respondPath(path)
257
258
259
- delete("{id}") {
+ delete("/delete/{id}") {
260
val id = call.parameters["id"] ?: error("id not set")
261
val path = api.jsonDb.base<HAR>().resolve(id)
262
path.deleteIfExists()
0 commit comments