Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebBack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
websystem
WebBack
Merge requests
!12
[
#10
] 연관 관계 및 친구 관련 test 코드
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
[
#10
] 연관 관계 및 친구 관련 test 코드
test/#10
into
develop
Overview
0
Commits
3
Pipelines
0
Changes
10
Merged
세현 임
requested to merge
test/#10
into
develop
7 months ago
Overview
0
Commits
3
Pipelines
0
Changes
10
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
71516bdc
3 commits,
7 months ago
10 files
+
603
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
controllers/friendController.js
+
1
−
7
View file @ 71516bdc
Edit in single-file editor
Open in Web IDE
Show full file
const
FriendService
=
require
(
'
../services/friendService
'
);
class
friendController
{
class
FriendController
{
/**
* 친구 요청 보내기
* 클라이언트는 userId와 요청을 보낼 사용자의 email을 전송
@@ -37,12 +33,11 @@ class friendController {
if
(
error
.
message
===
'
Friend request already exists
'
)
{
return
res
.
status
(
409
).
json
({
message
:
error
.
message
});
}
// 일반 오류 처리
return
res
.
status
(
500
).
json
({
message
:
'
서버 오류가 발생했습니다.
'
,
error
:
error
.
message
});
}
}
}
/**
* 받은 친구 요청 목록 조회
* GET /api/friend/requests/received
@@ -195,7 +190,6 @@ class friendController {
});
}
}
}
module
.
exports
=
new
friendController
();
\ No newline at end of file
Loading