nestjs AXIOS_INSTANCE_TOKEN 1

nestjs AXIOS_INSTANCE_TOKEN

import { HttpModule } from '@nestjs/common';
...

@Module({
    imports: [TerminalModule, HttpModule],
    providers: [TimeService],
    ...
})

Here is what the above code is Doing:
1. Importing the TerminalModule from the @nestjs/terminal package.
2. Importing the HttpModule from the @nestjs/common package.
3. Adding the TerminalModule and HttpModule to the imports array of the AppModule.
4. Adding the TimeService to the providers array of the AppModule.

Similar Posts