feat: Refactoring route declarations.
This commit is contained in:
@@ -74,7 +74,7 @@ struct EmployeeForm: HTML {
|
||||
return "Update"
|
||||
}
|
||||
|
||||
private var targetURL: SharedModels.ViewRoute {
|
||||
private var targetURL: SiteRoute.View {
|
||||
guard let employee else { return .employee(.index) }
|
||||
return .employee(.get(id: employee.id))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user