mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Remove unused imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, Response, Router } from 'express';
|
||||
import { Router } from 'express';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
import database from '../database';
|
||||
import { SYSTEM_ASSET_ALLOW_LIST, ASSET_TRANSFORM_QUERY_KEYS } from '../constants';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, Response, Router } from 'express';
|
||||
import { Router } from 'express';
|
||||
import session from 'express-session';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
import Joi from 'joi';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, Response, Router } from 'express';
|
||||
import { Router } from 'express';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
import { CollectionsService, MetaService } from '../services';
|
||||
import { ForbiddenException, InvalidPayloadException } from '../exceptions';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import express, { NextFunction, Request, Response, Router } from 'express';
|
||||
import express, { Router } from 'express';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
import { RouteNotFoundException } from '../exceptions';
|
||||
import { listExtensions } from '../extensions';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, Response, Router } from 'express';
|
||||
import { Router } from 'express';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
import { FieldsService } from '../services/fields';
|
||||
import validateCollection from '../middleware/collection-exists';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, Response, Router } from 'express';
|
||||
import { Router } from 'express';
|
||||
import { ServerService } from '../services';
|
||||
import { SpecificationService } from '../services';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, RequestHandler, Response } from 'express';
|
||||
import { RequestHandler } from 'express';
|
||||
import jwt, { TokenExpiredError, JsonWebTokenError } from 'jsonwebtoken';
|
||||
import isJWT from '../utils/is-jwt';
|
||||
import database from '../database';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, RequestHandler, Response } from 'express';
|
||||
import { RequestHandler } from 'express';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
import env from '../env';
|
||||
import { getCacheKey } from '../utils/get-cache-key';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, RequestHandler, Response } from 'express';
|
||||
import { RequestHandler } from 'express';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
import database from '../database';
|
||||
import { InvalidIPException } from '../exceptions';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Check if requested collection exists, and save it to req.collection
|
||||
*/
|
||||
|
||||
import { NextFunction, Request, RequestHandler, Response } from 'express';
|
||||
import { RequestHandler } from 'express';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
import database from '../database';
|
||||
import { ForbiddenException } from '../exceptions';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, RequestHandler, Response } from 'express';
|
||||
import { RequestHandler } from 'express';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
import {
|
||||
RateLimiterMemory,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, RequestHandler, Response } from 'express';
|
||||
import { RequestHandler } from 'express';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
import { schemaInspector } from '../database';
|
||||
import logger from '../logger';
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
* Set req.collection for use in other middleware. Used as an alternative on validate-collection for
|
||||
* system collections
|
||||
*/
|
||||
import { NextFunction, Request, Response } from 'express';
|
||||
import asyncHandler from '../utils/async-handler';
|
||||
|
||||
const useCollection = (collection: string) =>
|
||||
|
||||
Reference in New Issue
Block a user