Skip to content

Commit b1828f4

Browse files
committed
Move siteURL to the new dependencies framework.
1 parent 05b7473 commit b1828f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/App/Controllers/PackageController+routes.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,9 @@ extension PackageController {
467467

468468
// Replace the reference with the "current" tilde character regardless of the incoming reference.
469469
urlComponents[3] = "~"
470-
return Current.siteURL() + urlComponents.joined(by: "/")
470+
471+
@Dependency(\.environment) var environment
472+
return environment.siteURL() + urlComponents.joined(by: "/")
471473
}
472474
}
473475

0 commit comments

Comments
 (0)