refine user hook URL control for specific API endpoints

Move user hook validation to individual endpoints (/connect, /cmd, /web).

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2025-07-16 20:26:13 +08:00
parent 989d9be983
commit d2320dce67
4 changed files with 18 additions and 8 deletions

View File

@@ -104,7 +104,7 @@ func main() {
},
&cli.StringFlag{
Name: "user-hook-url",
Usage: "called when the user accesses APIs",
Usage: "called when user accesses /connect/:devid, /cmd/:devid, /web/, or /web2/ APIs",
},
&cli.BoolFlag{
Name: "local-auth",