biz-slide-core 1.0.5 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Response, NextFunction } from "express";
|
2
|
-
import { verifyUid } from "../utilities
|
3
|
-
import IRequest from "../types
|
4
|
-
import UserModel from "../entity
|
2
|
+
import { verifyUid } from "../utilities";
|
3
|
+
import { IRequest } from "../types";
|
4
|
+
import { UserModel } from "../entity";
|
5
5
|
|
6
6
|
|
7
7
|
const authorize = (roles: string[]) => {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { NextFunction, Response } from "express";
|
2
2
|
import Joi from 'joi';
|
3
3
|
|
4
|
-
import IRequest from "../types
|
4
|
+
import { IRequest } from "../types";
|
5
5
|
|
6
6
|
export const validateSchema = (schema: Joi.ObjectSchema<any>) => {
|
7
7
|
return async function (req: IRequest, res: Response, next: NextFunction) {
|