mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-09 00:37:27 +00:00
stick to ES6 import instead of CommonJS require
This commit is contained in:
@@ -6,8 +6,8 @@ import { default as User, UserModel, AuthToken } from "../models/User";
|
||||
import { Request, Response, NextFunction } from "express";
|
||||
import { IVerifyOptions } from "passport-local";
|
||||
import { WriteError } from "mongodb";
|
||||
import request from "express-validator";
|
||||
import "../config/passport";
|
||||
const request = require("express-validator");
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user