-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust GET providers to accept query-param instead of body for personId
- Loading branch information
Showing
2 changed files
with
2 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Body, Controller, Get } from '@nestjs/common'; | ||
import { Controller, Get, Query } from "@nestjs/common"; | ||
import { RolleService } from '../domain/rolle.service.js'; | ||
import { ApiTags } from '@nestjs/swagger'; | ||
import { ServiceProviderDo } from '../domain/service-provider.do.js'; | ||
|
@@ -10,9 +10,7 @@ export class ProviderController { | |
public constructor(private readonly rolleService: RolleService) {} | ||
|
||
@Get() | ||
public async getServiceProvidersByPersonId( | ||
@Body() params: ServiceProviderByPersonIdBodyParams, | ||
): Promise<ServiceProviderDo<true>[]> { | ||
public async getServiceProvidersByPersonId(@Query() params: ServiceProviderByPersonIdBodyParams): Promise<ServiceProviderDo<true>[]> { | ||
Check warning on line 13 in src/modules/rolle/api/provider.controller.ts GitHub Actions / nest_lint / Nest Lint
|
||
return this.rolleService.getAvailableServiceProviders(params.personId); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.