Skip to content

Commit

Permalink
Merge branch 'BC-4942-authoriazation-reference-service' of https://gi…
Browse files Browse the repository at this point in the history
…thub.com/hpi-schul-cloud/schulcloud-server into BC-4942-authoriazation-reference-service
  • Loading branch information
CeEv committed Oct 11, 2023
2 parents f2b7383 + da2e0b7 commit 3621256
Show file tree
Hide file tree
Showing 64 changed files with 6,820 additions and 2,855 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Body, Controller, Delete, Get, Param, Patch, Query } from '@nestjs/common';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { Authenticate, CurrentUser } from '@src/modules/authentication/decorator/auth.decorator';
import { EntityNotFoundError, ForbiddenOperationError, ValidationError } from '@shared/common';
import { ICurrentUser } from '@src/modules/authentication';
import { Authenticate, CurrentUser } from '@src/modules/authentication/decorator/auth.decorator';
import { AccountUc } from '../uc/account.uc';
import {
AccountByIdBodyParams,
Expand Down Expand Up @@ -33,6 +33,8 @@ export class AccountController {
@Query() query: AccountSearchQueryParams
): Promise<AccountSearchListResponse> {
return this.accountUc.searchAccounts(currentUser, query);

// TODO: mapping from domain to api dto should be a responsability of the controller (also every other function here)
}

@Get(':id')
Expand Down
Loading

0 comments on commit 3621256

Please sign in to comment.