Mercurial > prosody-modules
comparison mod_rest/jsonmap.lib.lua @ 4746:88f5e12c8351
mod_rest: Imply type=set for archive queries
This is what makes GET /archive/{to} do the query instead of retrieve
the form only.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 04 Nov 2021 20:17:07 +0100 |
parents | f478855f4565 |
children | 566e54a07f54 |
comparison
equal
deleted
inserted
replaced
4745:d29a295cd165 | 4746:88f5e12c8351 |
---|---|
399 status = "presence", | 399 status = "presence", |
400 } | 400 } |
401 | 401 |
402 local implied_types = { | 402 local implied_types = { |
403 command = "set", | 403 command = "set", |
404 archive = "set", | |
404 } | 405 } |
405 | 406 |
406 local kind_by_type = { | 407 local kind_by_type = { |
407 get = "iq", set = "iq", result = "iq", | 408 get = "iq", set = "iq", result = "iq", |
408 normal = "message", chat = "message", headline = "message", groupchat = "message", | 409 normal = "message", chat = "message", headline = "message", groupchat = "message", |