mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Deprecate auth device and exchange rate endpoints * Update changelogpull/8258/head^2
committed by
GitHub
17 changed files with 86 additions and 52 deletions
@ -1,19 +0,0 @@ |
|||||
import { AuthDeviceController } from '@ghostfolio/api/app/auth-device/auth-device.controller'; |
|
||||
import { AuthDeviceService } from '@ghostfolio/api/app/auth-device/auth-device.service'; |
|
||||
import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; |
|
||||
|
|
||||
import { Module } from '@nestjs/common'; |
|
||||
import { JwtModule } from '@nestjs/jwt'; |
|
||||
|
|
||||
@Module({ |
|
||||
controllers: [AuthDeviceController], |
|
||||
imports: [ |
|
||||
JwtModule.register({ |
|
||||
secret: process.env.JWT_SECRET_KEY, |
|
||||
signOptions: { expiresIn: '180 days' } |
|
||||
}), |
|
||||
PrismaModule |
|
||||
], |
|
||||
providers: [AuthDeviceService] |
|
||||
}) |
|
||||
export class AuthDeviceModule {} |
|
||||
@ -0,0 +1,11 @@ |
|||||
|
import { AuthDeviceModule } from '@ghostfolio/api/services/auth-device/auth-device.module'; |
||||
|
|
||||
|
import { Module } from '@nestjs/common'; |
||||
|
|
||||
|
import { AuthDevicesController } from './auth-devices.controller'; |
||||
|
|
||||
|
@Module({ |
||||
|
controllers: [AuthDevicesController], |
||||
|
imports: [AuthDeviceModule] |
||||
|
}) |
||||
|
export class AuthDevicesModule {} |
||||
@ -0,0 +1,13 @@ |
|||||
|
import { ExchangeRateDataModule } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.module'; |
||||
|
|
||||
|
import { Module } from '@nestjs/common'; |
||||
|
|
||||
|
import { ExchangeRatesController } from './exchange-rates.controller'; |
||||
|
import { ExchangeRatesService } from './exchange-rates.service'; |
||||
|
|
||||
|
@Module({ |
||||
|
controllers: [ExchangeRatesController], |
||||
|
imports: [ExchangeRateDataModule], |
||||
|
providers: [ExchangeRatesService] |
||||
|
}) |
||||
|
export class ExchangeRatesModule {} |
||||
@ -1,14 +0,0 @@ |
|||||
import { ExchangeRateDataModule } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.module'; |
|
||||
|
|
||||
import { Module } from '@nestjs/common'; |
|
||||
|
|
||||
import { ExchangeRateController } from './exchange-rate.controller'; |
|
||||
import { ExchangeRateService } from './exchange-rate.service'; |
|
||||
|
|
||||
@Module({ |
|
||||
controllers: [ExchangeRateController], |
|
||||
exports: [ExchangeRateService], |
|
||||
imports: [ExchangeRateDataModule], |
|
||||
providers: [ExchangeRateService] |
|
||||
}) |
|
||||
export class ExchangeRateModule {} |
|
||||
@ -0,0 +1,12 @@ |
|||||
|
import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; |
||||
|
|
||||
|
import { Module } from '@nestjs/common'; |
||||
|
|
||||
|
import { AuthDeviceService } from './auth-device.service'; |
||||
|
|
||||
|
@Module({ |
||||
|
exports: [AuthDeviceService], |
||||
|
imports: [PrismaModule], |
||||
|
providers: [AuthDeviceService] |
||||
|
}) |
||||
|
export class AuthDeviceModule {} |
||||
@ -0,0 +1,3 @@ |
|||||
|
export interface ExchangeRateResponse { |
||||
|
marketPrice: number; |
||||
|
} |
||||
Loading…
Reference in new issue