File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ enum SiteURL: Resourceable, Sendable {
113113 case blogPost( _ slug: Parameter < String > )
114114 case buildMonitor
115115 case builds( _ id: Parameter < UUID > )
116+ case collections( _ name: Parameter < String > )
116117 case docs( Docs )
117118 case faq
118119 case home
@@ -169,6 +170,12 @@ enum SiteURL: Resourceable, Sendable {
169170 case . buildMonitor:
170171 return " build-monitor "
171172
173+ case let . collections( . value( name) ) :
174+ return " collections/ \( name) "
175+
176+ case . collections( . key) :
177+ fatalError ( " path must not be called with a name parameter " )
178+
172179 case let . docs( next) :
173180 return " docs/ \( next. path) "
174181
@@ -283,6 +290,12 @@ enum SiteURL: Resourceable, Sendable {
283290 case . builds( . value) :
284291 fatalError ( " pathComponents must not be called with a value parameter " )
285292
293+ case . collections( . key) :
294+ return [ " collections " , " :name " ]
295+
296+ case . collections( . value) :
297+ fatalError ( " pathComponents must not be called with a value parameter " )
298+
286299 case let . docs( next) :
287300 return [ " docs " ] + next. pathComponents
288301
You can’t perform that action at this time.
0 commit comments