Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit fb3eb5c

Browse files
Updated naming
1 parent e9ea2a6 commit fb3eb5c

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed

controllers/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Request, Response } from "express";
22
import bcrypt from 'bcrypt';
33
import { AuthenticationError, ServerError } from "../lib/errors";
44
import JWT from "../lib/jwt";
5-
import Users, { User } from "../models/users";
5+
import Users, { User } from "../database/users";
66
import SuccessResponse from "../lib/success-response";
77

88
export default class AuthController {
File renamed without changes.
File renamed without changes.

lib/jwt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import jwt, { JwtPayload } from 'jsonwebtoken'
2-
import { User } from '../models/users';
2+
import { User } from '../database/users';
33

44
export default class JWT {
55
/**

middleware/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import jwt from '../lib/jwt'
22
import { AuthenticationError } from '../lib/errors'
33
import { NextFunction, Request, Response } from 'express';
4-
import Users, { User } from '../models/users';
4+
import Users, { User } from '../database/users';
55

66
export default async function AuthMiddleware(req: Request, res: Response, next: NextFunction) {
77
let header = req.get('Authorization') as string;

validators/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NextFunction, Request, Response } from 'express'
2-
import Users from '../models/users';
2+
import Users from '../database/users';
33
import { ConflictError, InvalidFormDataError } from '../lib/errors';
44
import Joi from 'joi';
55

0 commit comments

Comments
 (0)