mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-04-06 02:19:05 +00:00
Refactor: begin reorganizing services dir.
- Renamed files and directories to reflect the new structure - Moved comment-related services to the 'comments' directory - Moved image-related services to the 'images' directory - Moved like-related services to the 'likes' directory - Moved post-related services to the 'posts' directory - Moved user-related services to the 'users' directory
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import ServerError from '@/config/util/ServerError';
|
||||
import DBClient from '@/prisma/DBClient';
|
||||
import editBeerCommentById from '@/services/BeerComment/editBeerCommentById';
|
||||
import findBeerCommentById from '@/services/BeerComment/findBeerCommentById';
|
||||
import editBeerCommentById from '@/services/comments/BeerComment/editBeerCommentById';
|
||||
import findBeerCommentById from '@/services/comments/BeerComment/findBeerCommentById';
|
||||
import APIResponseValidationSchema from '@/validation/APIResponseValidationSchema';
|
||||
import { NextApiResponse } from 'next';
|
||||
import { NextHandler } from 'next-connect';
|
||||
import { z } from 'zod';
|
||||
import createNewBeerComment from '@/services/BeerComment/createNewBeerComment';
|
||||
import getAllBeerComments from '@/services/BeerComment/getAllBeerComments';
|
||||
import createNewBeerComment from '@/services/comments/BeerComment/createNewBeerComment';
|
||||
import getAllBeerComments from '@/services/comments/BeerComment/getAllBeerComments';
|
||||
import {
|
||||
CommentRequest,
|
||||
EditAndCreateCommentRequest,
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import ServerError from '@/config/util/ServerError';
|
||||
import DBClient from '@/prisma/DBClient';
|
||||
import updateBeerStyleCommentById from '@/services/BeerStyleComment/updateBeerStyleCommentById';
|
||||
import updateBeerStyleCommentById from '@/services/comments/BeerStyleComment/updateBeerStyleCommentById';
|
||||
import APIResponseValidationSchema from '@/validation/APIResponseValidationSchema';
|
||||
import { NextApiResponse } from 'next';
|
||||
import { NextHandler } from 'next-connect';
|
||||
import { z } from 'zod';
|
||||
|
||||
import CommentQueryResult from '@/services/schema/CommentSchema/CommentQueryResult';
|
||||
import createNewBeerStyleComment from '@/services/BeerStyleComment/createNewBeerStyleComment';
|
||||
import getAllBeerStyleComments from '@/services/BeerStyleComment/getAllBeerStyleComments';
|
||||
import createNewBeerStyleComment from '@/services/comments/BeerStyleComment/createNewBeerStyleComment';
|
||||
import getAllBeerStyleComments from '@/services/comments/BeerStyleComment/getAllBeerStyleComments';
|
||||
|
||||
import {
|
||||
CommentRequest,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import ServerError from '@/config/util/ServerError';
|
||||
import DBClient from '@/prisma/DBClient';
|
||||
import getBreweryCommentById from '@/services/BreweryComment/getBreweryCommentById';
|
||||
import getBreweryCommentById from '@/services/comments/BreweryComment/getBreweryCommentById';
|
||||
import APIResponseValidationSchema from '@/validation/APIResponseValidationSchema';
|
||||
import { NextApiResponse } from 'next';
|
||||
import { NextHandler } from 'next-connect';
|
||||
import { z } from 'zod';
|
||||
import CommentQueryResult from '@/services/schema/CommentSchema/CommentQueryResult';
|
||||
import createNewBreweryComment from '@/services/BreweryComment/createNewBreweryComment';
|
||||
import getAllBreweryComments from '@/services/BreweryComment/getAllBreweryComments';
|
||||
import createNewBreweryComment from '@/services/comments/BreweryComment/createNewBreweryComment';
|
||||
import getAllBreweryComments from '@/services/comments/BreweryComment/getAllBreweryComments';
|
||||
import {
|
||||
CommentRequest,
|
||||
EditAndCreateCommentRequest,
|
||||
|
||||
Reference in New Issue
Block a user