Skip to content

Commit

Permalink
server: rmv redundant codes
Browse files Browse the repository at this point in the history
  • Loading branch information
huytran17 committed Aug 25, 2024
1 parent e451d39 commit 1e52439
Show file tree
Hide file tree
Showing 31 changed files with 9 additions and 1,095 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions core/server/src/data-access/controllers/user/category/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import {
getCategories,
getCategoriesPaginated,
getCategory,
getCategoryBySlug,
getCategoryTitles,
} from "../../../../use-cases/category";
import { countPostByCategory } from "../../../../use-cases/post";
import makeGetCategoriesController from "./get-categories";
import makeGetCategoryController from "./get-category";
import makeGetCategoryBySlugController from "./get-category-by-slug";
import makeGetCategoryTitlesController from "./get-category-titles";
import makeGetOutstandingCategoriesPaginatedController from "./get-outstanding-categories-paginated";
Expand All @@ -26,26 +22,14 @@ const getCategoryTitlesController = makeGetCategoryTitlesController({
getCategoryTitles,
});

const getCategoriesController = makeGetCategoriesController({
getCategories,
});

const getCategoryController = makeGetCategoryController({
getCategory,
});

export default Object.freeze({
getCategoryController,
getCategoriesController,
getCategoryTitlesController,
getOutstandingCategoriesPaginatedController,
getCategoryBySlugController,
});

export {
getCategoriesController,
getCategoryBySlugController,
getCategoryController,
getCategoryTitlesController,
getOutstandingCategoriesPaginatedController,
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import getCategoryRules from "./get-category";
import getOutstandingCategoriesPaginatedRules from "./get-outstanding-categories-paginated";
import getCategoryBySlugRules from "./get-category-by-slug";
import getOutstandingCategoriesPaginatedRules from "./get-outstanding-categories-paginated";

export default Object.freeze({
getCategoryRules,
getOutstandingCategoriesPaginatedRules,
getCategoryBySlugRules,
});

export {
getCategoryRules,
getOutstandingCategoriesPaginatedRules,
getCategoryBySlugRules,
};
export { getCategoryBySlugRules, getOutstandingCategoriesPaginatedRules };

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1e52439

Please sign in to comment.