-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi.module.ts
More file actions
executable file
·90 lines (87 loc) · 3.32 KB
/
api.module.ts
File metadata and controls
executable file
·90 lines (87 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { Configuration } from './configuration';
import { AllianceService } from './api/alliance.service';
import { AssetsService } from './api/assets.service';
import { BookmarksService } from './api/bookmarks.service';
import { CalendarService } from './api/calendar.service';
import { CharacterService } from './api/character.service';
import { ClonesService } from './api/clones.service';
import { ContactsService } from './api/contacts.service';
import { ContractsService } from './api/contracts.service';
import { CorporationService } from './api/corporation.service';
import { DogmaService } from './api/dogma.service';
import { FactionWarfareService } from './api/factionWarfare.service';
import { FittingsService } from './api/fittings.service';
import { FleetsService } from './api/fleets.service';
import { IncursionsService } from './api/incursions.service';
import { IndustryService } from './api/industry.service';
import { InsuranceService } from './api/insurance.service';
import { KillmailsService } from './api/killmails.service';
import { LocationService } from './api/location.service';
import { LoyaltyService } from './api/loyalty.service';
import { MailService } from './api/mail.service';
import { MarketService } from './api/market.service';
import { OpportunitiesService } from './api/opportunities.service';
import { PlanetaryInteractionService } from './api/planetaryInteraction.service';
import { RoutesService } from './api/routes.service';
import { SearchService } from './api/search.service';
import { SkillsService } from './api/skills.service';
import { SovereigntyService } from './api/sovereignty.service';
import { StatusService } from './api/status.service';
import { UniverseService } from './api/universe.service';
import { UserInterfaceService } from './api/userInterface.service';
import { WalletService } from './api/wallet.service';
import { WarsService } from './api/wars.service';
@NgModule({
imports: [ CommonModule, HttpClientModule ],
declarations: [],
exports: [],
providers: [
AllianceService,
AssetsService,
BookmarksService,
CalendarService,
CharacterService,
ClonesService,
ContactsService,
ContractsService,
CorporationService,
DogmaService,
FactionWarfareService,
FittingsService,
FleetsService,
IncursionsService,
IndustryService,
InsuranceService,
KillmailsService,
LocationService,
LoyaltyService,
MailService,
MarketService,
OpportunitiesService,
PlanetaryInteractionService,
RoutesService,
SearchService,
SkillsService,
SovereigntyService,
StatusService,
UniverseService,
UserInterfaceService,
WalletService,
WarsService ]
})
export class ApiModule {
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders {
return {
ngModule: ApiModule,
providers: [ { provide: Configuration, useFactory: configurationFactory } ]
}
}
constructor( @Optional() @SkipSelf() parentModule: ApiModule) {
if (parentModule) {
throw new Error('ApiModule is already loaded. Import your base AppModule only.');
}
}
}