|
|
|
@@ -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] { |
|
|
|
|