Skip to content

Commit 5b1ed02

Browse files
committed
fix har 6
1 parent b2defa2 commit 5b1ed02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/server/src/main/kotlin/Routing.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private fun stats(): Route.() -> Unit = {
232232
a("download/$k.har") { +"download" }
233233
}
234234
td {
235-
form(action = k, method = FormMethod.delete) {
235+
form(action = k, method = FormMethod.post) {
236236
button(type = ButtonType.submit) { +"Delete" }
237237
}
238238
}
@@ -256,7 +256,7 @@ private fun stats(): Route.() -> Unit = {
256256
call.respondPath(path)
257257
}
258258

259-
delete("{id}") {
259+
delete("/delete/{id}") {
260260
val id = call.parameters["id"] ?: error("id not set")
261261
val path = api.jsonDb.base<HAR>().resolve(id)
262262
path.deleteIfExists()

0 commit comments

Comments
 (0)