Skip to content

Commit

Permalink
organize
Browse files Browse the repository at this point in the history
  • Loading branch information
mudroljub committed Dec 18, 2024
1 parent e4b07b4 commit 3ab5a29
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import quotesRouter from './quotes/quotesRouter.js'
import authRouter from './auth/authRouter.js'
import userRouter from './users/userRouter.js'

import { port, domain } from './config/host.js'
import { port, domain } from './commons/config.js'
import { normalizeJsonKeys } from './middleware/normalize.js'

const app = express()
Expand Down
2 changes: 1 addition & 1 deletion src/auth/AuthController.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import UserService from '../users/UserService.js'
import AuthService from './AuthService.js'
import { clientDomain } from '../config/host.js'
import { clientDomain } from '../commons/config.js'

const getToken = async(req, res) => {
const { email, password } = req.body
Expand Down
2 changes: 1 addition & 1 deletion src/auth/AuthService.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import jwt from 'jsonwebtoken'
import nodemailer from 'nodemailer'
import { domain } from '../config/host.js'
import { domain } from '../commons/config.js'

const { JWT_SECRET } = process.env

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/quotes/QuoteController.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import QuoteCreateDTO from './dtos/QuoteCreateDTO.js'
import { handleError } from '../utils.js'
import { handleError } from '../commons/utils.js'
import QuoteService from './QuoteService.js'
import UserService from '../users/UserService.js'

Expand Down
2 changes: 1 addition & 1 deletion src/quotes/QuoteService.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Quote from './entities/Quote.js'
import { NotFoundError } from '../utils.js'
import { NotFoundError } from '../commons/utils.js'

const create = async(quote, userId) => {
const existingQuote = await Quote.findOne({ text: quote.text })
Expand Down
2 changes: 1 addition & 1 deletion src/users/UserController.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import UserService from './UserService.js'
import { handleError } from '../utils.js'
import { handleError } from '../commons/utils.js'

const getByEmail = async(req, res) => {
try {
Expand Down

0 comments on commit 3ab5a29

Please sign in to comment.