We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f11aed commit a0014d3Copy full SHA for a0014d3
coderd/httpapi/name.go
@@ -46,6 +46,7 @@ func NameValid(str string) error {
46
if len(str) < 1 {
47
return xerrors.New("must be >= 1 character")
48
}
49
+ // Avoid conflicts with routes like /templates/new and /groups/create.
50
if str == "new" || str == "create" {
51
return xerrors.Errorf("cannot use %q as a name", str)
52
0 commit comments