comparison 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
parents 5dbce7f35aa0
children 7f1f3b79d991
comparison
equal deleted inserted replaced
4359:5dbce7f35aa0 4360:76bec3f66b24
270 270
271 module:provides("http", { 271 module:provides("http", {
272 route = check_auth { 272 route = check_auth {
273 ["GET /invites"] = list_invites; 273 ["GET /invites"] = list_invites;
274 ["GET /invites/*"] = get_invite_by_id; 274 ["GET /invites/*"] = get_invite_by_id;
275 ["PUT /invites"] = create_invite; 275 ["POST /invites"] = create_invite;
276 ["DELETE /invites/*"] = delete_invite; 276 ["DELETE /invites/*"] = delete_invite;
277 277
278 ["GET /users"] = list_users; 278 ["GET /users"] = list_users;
279 ["GET /users/*"] = get_user_by_name; 279 ["GET /users/*"] = get_user_by_name;
280 ["DELETE /users/*"] = delete_user; 280 ["DELETE /users/*"] = delete_user;
281 281
282 ["GET /groups"] = list_groups; 282 ["GET /groups"] = list_groups;
283 ["GET /groups/*"] = get_group_by_id; 283 ["GET /groups/*"] = get_group_by_id;
284 ["PUT /groups"] = create_group; 284 ["POST /groups"] = create_group;
285 ["DELETE /groups/*"] = delete_group; 285 ["DELETE /groups/*"] = delete_group;
286 }; 286 };
287 }); 287 });