Skip to content

Commit

Permalink
cleanup. Project not building
Browse files Browse the repository at this point in the history
  • Loading branch information
twof committed Nov 22, 2021
1 parent a6d7db8 commit baa561e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 45 deletions.
6 changes: 3 additions & 3 deletions Sources/CrudRouter/ControllerProtocols/Crudable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public protocol Crudable: ControllerProtocol {
at path: PathComponent...,
parent relation: KeyPath<OriginType, ParentProperty<OriginType, ParentType>>,
_ either: OnlyExceptEither<ParentRouterMethod>,
relationConfiguration: ((CrudParentController<OriginType, ParentType>) -> Void)?
relationConfiguration: ((CrudParentController<ParentType, OriginType>) -> Void)?
) where
ParentType: Model & Content,
ParentType.IDValue: LosslessStringConvertible
Expand Down Expand Up @@ -37,7 +37,7 @@ extension Crudable {
at path: PathComponent...,
parent relation: KeyPath<OriginType, ParentProperty<OriginType, ParentType>>,
_ either: OnlyExceptEither<ParentRouterMethod> = .only([.read, .update]),
relationConfiguration: ((CrudParentController<OriginType, ParentType>) -> Void)?=nil
relationConfiguration: ((CrudParentController<ParentType, OriginType>) -> Void)?=nil
) where
ParentType: Model & Content,
ParentType.IDValue: LosslessStringConvertible
Expand All @@ -49,7 +49,7 @@ extension Crudable {


let allMethods: Set<ParentRouterMethod> = Set([.read, .update])
let controller: CrudParentController<OriginType, ParentType>
let controller: CrudParentController<ParentType, OriginType>

switch either {
case .only(let methods):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ class HighRecursiveDepthTests: XCTestCase {
}
}

app.crud(register: Planet.self) { router in
router.crud(parent: \.$galaxy) { parentRouter in
parentRouter.crud(children: \.$planets)
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// File.swift
//
//
// Created by fnord on 12/29/19.
//

import FluentSQLiteDriver
import Fluent
import XCTVapor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// CrudRoutePostResponseTests.swift
// AsyncHTTPClient
//
// Created by fnord on 1/4/20.
//

import FluentSQLiteDriver
import Fluent
import XCTVapor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// CrudRoutePostResponseTests.swift
// AsyncHTTPClient
//
// Created by fnord on 1/4/20.
//

import FluentSQLiteDriver
import Fluent
import XCTVapor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// File.swift
//
//
// Created by fnord on 12/29/19.
//

import FluentKit
import Foundation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// File.swift
//
//
// Created by fnord on 12/29/19.
//

import FluentKit
import Foundation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// SiblingSeeding.swift
// AsyncHTTPClient
//
// Created by fnord on 12/29/19.
//

import FluentKit
import Foundation

Expand Down

0 comments on commit baa561e

Please sign in to comment.