4 ms·
> Therefore, the new ServeMux documentation meticulously describes the precedence rules for patterns This is so backwards it's not even funny. It is supposed t
by hknmtt 3y ago
> Therefore, the new ServeMux documentation meticulously describes the precedence rules for patterns
This is so backwards it's not even funny. It is supposed to be exactly the other way - conrete paths MUST TAKE PRECEDENCE over patterns.
- hashworks 3y agoIn the example there are no concrete path, both have variables. Is there an example in the documentation that allows paths with variables precedence over concrete paths?
- hknmtt 3y agoit is a quite form the article itself. they say that get /foo/{id} takes precedences over path get /foo/23 or get /foo/bar
- eliben 3y ago> conrete paths MUST TAKE PRECEDENCE over patterns. And indeed they do.