소스 검색

Removed Pagination

v2_uploadImages
rpm-mcarman 2 년 전
부모
커밋
7e31c3c36b
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. BIN
      .swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate
  2. +2
    -2
      Sources/App/Controllers/FuelEntryV2Controller.swift

BIN
.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate 파일 보기


+ 2
- 2
Sources/App/Controllers/FuelEntryV2Controller.swift 파일 보기

@@ -20,8 +20,8 @@ struct FuelEntryV2Controller: RouteCollection {
}
}
func index(req: Request) async throws -> Page<FuelEntry> {
try await FuelEntry.query(on: req.db).paginate(for: req)
func index(req: Request) async throws -> [FuelEntry] {
return try await FuelEntry.query(on: req.db).all()
}
// func getAllEntriesWithImages(req: Request) async throws -> [FuelEntry] {


불러오는 중...
취소
저장