Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/controllers/kitchen-sink/statuscode.controllers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { asyncHandler } from "../../utils/asyncHandler.js";
import statusCodesJson from "../../json/status-codes.json" assert { type: "json" };
import statusCodesJson from "../../json/status-codes.json" with { type: "json" };
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";

Expand Down
2 changes: 1 addition & 1 deletion src/controllers/public/book.controllers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import booksJson from "../../json/books.json" assert { type: "json" };
import booksJson from "../../json/books.json" with { type: "json" };
import { filterObjectKeys, getPaginatedPayload } from "../../utils/helpers.js";
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/public/cat.controllers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import catsJson from "../../json/cats.json" assert { type: "json" };
import catsJson from "../../json/cats.json" with { type: "json" };
import { filterObjectKeys, getPaginatedPayload } from "../../utils/helpers.js";
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/public/dog.controllers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dogsJson from "../../json/dogs.json" assert { type: "json" };
import dogsJson from "../../json/dogs.json" with { type: "json" };
import { filterObjectKeys, getPaginatedPayload } from "../../utils/helpers.js";
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/public/meal.controllers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mealsJson from "../../json/meals.json" assert { type: "json" };
import mealsJson from "../../json/meals.json" with { type: "json" };
import { filterObjectKeys, getPaginatedPayload } from "../../utils/helpers.js";
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/public/quote.controllers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import quotesJson from "../../json/quotes.json" assert { type: "json" };
import quotesJson from "../../json/quotes.json" with { type: "json" };
import { filterObjectKeys, getPaginatedPayload } from "../../utils/helpers.js";
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/public/randomjoke.controllers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import randomJokesJson from "../../json/randomjoke.json" assert { type: "json" };
import randomJokesJson from "../../json/randomjoke.json" with { type: "json" };
import { filterObjectKeys, getPaginatedPayload } from "../../utils/helpers.js";
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/public/randomproduct.controllers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import randomProductsJson from "../../json/randomproduct.json" assert { type: "json" };
import randomProductsJson from "../../json/randomproduct.json" with { type: "json" };
import { filterObjectKeys, getPaginatedPayload } from "../../utils/helpers.js";
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/public/randomuser.controllers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import randomUsersJson from "../../json/randomuser.json" assert { type: "json" };
import randomUsersJson from "../../json/randomuser.json" with { type: "json" };
import { filterObjectKeys, getPaginatedPayload } from "../../utils/helpers.js";
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/public/stock.controllers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import nseStocksJson from "../../json/nse-stocks.json" assert { type: "json" };
import nseStocksJson from "../../json/nse-stocks.json" with { type: "json" };
import { filterObjectKeys, getPaginatedPayload } from "../../utils/helpers.js";
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";
Expand Down
10 changes: 5 additions & 5 deletions src/controllers/public/youtube.controllers.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { YouTubeFilterEnum, AvailableYouTubeFilters } from "../../constants.js";
import channelJson from "../../json/youtube/channel.json" assert { type: "json" };
import commentsJson from "../../json/youtube/comments.json" assert { type: "json" };
import playlistItemsJson from "../../json/youtube/playlistitems.json" assert { type: "json" };
import playlistsJson from "../../json/youtube/playlists.json" assert { type: "json" };
import videosJson from "../../json/youtube/videos.json" assert { type: "json" };
import channelJson from "../../json/youtube/channel.json" with { type: "json" };
import commentsJson from "../../json/youtube/comments.json" with { type: "json" };
import playlistItemsJson from "../../json/youtube/playlistitems.json" with { type: "json" };
import playlistsJson from "../../json/youtube/playlists.json" with { type: "json" };
import videosJson from "../../json/youtube/videos.json" with { type: "json" };
import { ApiError } from "../../utils/ApiError.js";
import { ApiResponse } from "../../utils/ApiResponse.js";
import { asyncHandler } from "../../utils/asyncHandler.js";
Expand Down