| | |
| | | import { LayoutModule } from './layout/layout.module'; |
| | | import { StartupService } from './core/services/startup.service'; |
| | | import { DefaultInterceptor } from '@core/net/default.interceptor'; |
| | | import { AlainAuthModule, SimpleInterceptor } from '@delon/auth'; |
| | | import { AlainAuthModule, SimpleInterceptor, JWTInterceptor } from '@delon/auth'; |
| | | |
| | | // i18n |
| | | import { I18NService } from './core/i18n/i18n.service'; |
| | |
| | | RoutesModule, |
| | | // auth |
| | | AlainAuthModule.forRoot({ |
| | | login_url: `/pro/user/login` |
| | | login_url: `/pro/user/login`, |
| | | token_send_key : 'X-Authorization', |
| | | token_send_place : 'header', |
| | | allow_anonymous_key: `_allow_anonymous`, |
| | | }), |
| | | // i18n |
| | | TranslateModule.forRoot({ |