handler: rename set_uri to rewrite
authorFelix Fietkau <nbd@openwrt.org>
Sun, 8 Nov 2015 19:10:02 +0000 (20:10 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 8 Nov 2015 19:10:02 +0000 (20:10 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
handler.c

index 56720fb..6ec18af 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -100,7 +100,7 @@ handle_command(struct json_script_ctx *ctx, const char *name,
                void (*func)(struct json_script_ctx *ctx, struct blob_attr *data);
        } cmds[] = {
                { "redirect", handle_redirect },
-               { "set_uri", handle_set_uri }
+               { "rewrite", handle_set_uri }
        };
        int i;