mod_rest: Imply type=set for archive queries
authorKim Alvefur <zash@zash.se>
Thu, 04 Nov 2021 20:17:07 +0100
changeset 4750 88f5e12c8351
parent 4749 d29a295cd165
child 4751 566e54a07f54
mod_rest: Imply type=set for archive queries This is what makes GET /archive/{to} do the query instead of retrieve the form only.
mod_rest/jsonmap.lib.lua
--- a/mod_rest/jsonmap.lib.lua	Thu Nov 04 20:15:44 2021 +0100
+++ b/mod_rest/jsonmap.lib.lua	Thu Nov 04 20:17:07 2021 +0100
@@ -401,6 +401,7 @@
 
 local implied_types = {
 	command = "set",
+	archive = "set",
 }
 
 local kind_by_type = {