Diff

mod_http_admin_api/mod_http_admin_api.lua @ 4360:76bec3f66b24

mod_http_admin_api: Switch PUT to POST where appropriate
author Matthew Wild <mwild1@gmail.com>
date Tue, 19 Jan 2021 20:36:41 +0000
parent 4359:5dbce7f35aa0
child 4361:7f1f3b79d991
line wrap: on
line diff
--- a/mod_http_admin_api/mod_http_admin_api.lua	Tue Jan 19 20:35:33 2021 +0000
+++ b/mod_http_admin_api/mod_http_admin_api.lua	Tue Jan 19 20:36:41 2021 +0000
@@ -272,7 +272,7 @@
 	route = check_auth {
 		["GET /invites"] = list_invites;
 		["GET /invites/*"] = get_invite_by_id;
-		["PUT /invites"] = create_invite;
+		["POST /invites"] = create_invite;
 		["DELETE /invites/*"] = delete_invite;
 
 		["GET /users"] = list_users;
@@ -281,7 +281,7 @@
 
 		["GET /groups"] = list_groups;
 		["GET /groups/*"] = get_group_by_id;
-		["PUT /groups"] = create_group;
+		["POST /groups"] = create_group;
 		["DELETE /groups/*"] = delete_group;
 	};
 });