Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ehasa-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WIMMA Lab 2019
Overflow
ehasa-backend
Merge requests
!44
Development to testing
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Development to testing
Development
into
testing
Overview
0
Commits
20
Pipelines
0
Changes
3
Merged
Ghost User
requested to merge
Development
into
testing
5 years ago
Overview
0
Commits
20
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Viewing commit
f4928547
Prev
Next
Show latest version
3 files
+
36
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
f4928547
added notifications controller&service
· f4928547
Ronnie Friman
authored
5 years ago
src/notifications/notifications.controller.ts
0 → 100644
+
16
−
0
Options
import
{
Controller
,
Get
,
Param
}
from
'
@nestjs/common
'
;
import
{
NotificationsService
}
from
'
./notifications.service
'
;
import
{
Roles
}
from
'
src/shared/guard.decorator
'
;
@
Controller
(
'
notifications
'
)
export
class
NotificationsController
{
constructor
(
private
notificationService
:
NotificationsService
)
{}
// get all sent notifications for game
// :id is the id of the game
@
Get
(
'
:id
'
)
@
Roles
(
'
admin
'
,
'
factionleader
'
,
'
soldier
'
,
'
groupleader
'
)
async
(@
Param
(
'
id
'
)
gameId
)
{
return
this
.
notificationService
.
getNotifications
(
gameId
);
}
}
Loading