mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-03 07:45:21 +00:00
Support DELETE requests in fake server
This commit is contained in:
parent
4c00f8f6d6
commit
a60e492170
@ -88,6 +88,13 @@ function onPost(path, response) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onDelete(path, response) {
|
||||||
|
server.respondWith("DELETE", path, function(request){
|
||||||
|
let body = response(request, params(request));
|
||||||
|
request.respond(200, {}, body);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
//====================================
|
//====================================
|
||||||
// Activites
|
// Activites
|
||||||
//====================================
|
//====================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user