caddy
caddy copied to clipboard
Add the uniqueness judgment of id
Perform a uniqueness check on the passed id parameter. If it exists, an error will be reported.
?????
@francislavoie like this:
`
{ "@id": "route4", "match": [{"path_regexp": {"name": "path5","pattern": "path5"}}], "handle": [ { "@id": "xx", ... }, { "@id": "xx", ... } ] }
` I think it is a bad configuration.However, caddy did not check whether @id was unique.
I see. Yes, that's a valid complaint.
Please use code formatting with triple backticks ``` or click the <> button to insert a code block.
I submitted a pr. This is my first time submitting a pr. If there is anything that needs to be modified, please let me know. If you think my code is not good, stop it directly.