added missing route
This commit is contained in:
parent
e37f811d7e
commit
430f33a218
@ -1,15 +1,22 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { Controller, Get, Query } from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
import { SpService } from './sp.service';
|
||||
import { getSelectedServiceproviderDTO } from 'src/oracle/uscib-managed-sp/sp/sp.dto';
|
||||
|
||||
@Controller('mssql')
|
||||
export class SpController {
|
||||
|
||||
constructor(private readonly spService: SpService) {}
|
||||
constructor(private readonly spService: SpService) { }
|
||||
|
||||
@ApiTags('SP - Mssql')
|
||||
@Get('/GetAllServiceproviders')
|
||||
getAllServiceproviders() {
|
||||
return this.spService.getAllServiceproviders();
|
||||
}
|
||||
|
||||
@ApiTags('SP - Mssql')
|
||||
@Get('/GetSelectedServiceprovider')
|
||||
getSelectedServiceprovider(@Query() body: getSelectedServiceproviderDTO) {
|
||||
return this.spService.getSpBySpid(body);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user