feat: Adds level field to rooms, updates urls to point to public mirror of the project.
Some checks failed
CI / Linux Tests (push) Failing after 15s
Some checks failed
CI / Linux Tests (push) Failing after 15s
This commit is contained in:
@@ -216,12 +216,6 @@ extension SiteRoute.View.ProjectRoute {
|
||||
}
|
||||
Method.post
|
||||
Body().map(.memberwise(Room.CSV.init))
|
||||
// Body {
|
||||
// FormData {
|
||||
//
|
||||
// }
|
||||
// .map(.memberwise(Room.CSV.init))
|
||||
// }
|
||||
}
|
||||
Route(.case(Self.delete)) {
|
||||
Path {
|
||||
@@ -242,6 +236,12 @@ extension SiteRoute.View.ProjectRoute {
|
||||
Body {
|
||||
FormData {
|
||||
Field("name", .string)
|
||||
Optionally {
|
||||
Field("level") {
|
||||
Int.parser()
|
||||
}
|
||||
.map(.memberwise(Room.Level.init(rawValue:)))
|
||||
}
|
||||
Field("heatingLoad") { Double.parser() }
|
||||
Optionally {
|
||||
Field("coolingTotal") { Double.parser() }
|
||||
@@ -268,6 +268,12 @@ extension SiteRoute.View.ProjectRoute {
|
||||
Optionally {
|
||||
Field("name", .string)
|
||||
}
|
||||
Optionally {
|
||||
Field("level") {
|
||||
Int.parser()
|
||||
}
|
||||
.map(.memberwise(Room.Level.init(rawValue:)))
|
||||
}
|
||||
Optionally {
|
||||
Field("heatingLoad") { Double.parser() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user