File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import MongooseAdapter from ' @adminjs/mongoose' ;
2- import AdminJS from ' adminjs' ;
3- import express from ' express' ;
4- import mongoose from ' mongoose' ;
5- import AdminJSExpress from ' ../src' ;
6- import ' ./mongoose/admin-model' ;
7-
8- import ' ./mongoose/article-model' ;
1+ import MongooseAdapter from " @adminjs/mongoose" ;
2+ import AdminJS from " adminjs" ;
3+ import express from " express" ;
4+ import mongoose from " mongoose" ;
5+ import AdminJSExpress from " ../src" ;
6+ import " ./mongoose/admin-model" ;
7+
8+ import " ./mongoose/article-model" ;
99
1010AdminJS . registerAdapter ( MongooseAdapter ) ;
1111
Original file line number Diff line number Diff line change 1- import AdminJS from ' adminjs' ;
2- import { Router } from ' express' ;
1+ import AdminJS from " adminjs" ;
2+ import { Router } from " express" ;
33import {
44 AuthenticationMaxRetriesOptions ,
55 AuthenticationOptions ,
6- } from ' ../types' ;
6+ } from " ../types" ;
77
88const getLoginPath = ( admin : AdminJS ) : string => {
99 const { loginPath, rootPath } = admin . options ;
Original file line number Diff line number Diff line change 1- import AdminJS from 'adminjs' ;
2- import express , { Router } from 'express' ;
3- import formidableMiddleware from 'express-formidable' ;
4- import session from 'express-session' ;
5- import { withLogin } from './authentication/login.handler' ;
6- import { withLogout } from './authentication/logout.handler' ;
7- import { withProtectedRoutesHandler } from './authentication/protected-routes.handler' ;
8- import { buildRouter } from './buildRouter' ;
9- import { OldBodyParserUsedError } from './errors' ;
10- import {
11- AuthenticationOptions ,
12- FormidableOptions ,
13- } from './types' ;
1+ import AdminJS from "adminjs" ;
2+ import express , { Router } from "express" ;
3+ import formidableMiddleware from "express-formidable" ;
4+ import session from "express-session" ;
5+ import { withLogin } from "./authentication/login.handler" ;
6+ import { withLogout } from "./authentication/logout.handler" ;
7+ import { withProtectedRoutesHandler } from "./authentication/protected-routes.handler" ;
8+ import { buildRouter } from "./buildRouter" ;
9+ import { OldBodyParserUsedError } from "./errors" ;
10+ import { AuthenticationOptions , FormidableOptions } from "./types" ;
1411
1512/**
1613 * @typedef {Function } Authenticate
You can’t perform that action at this time.
0 commit comments