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
!29
Json validation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Json validation
json-validation
into
Development
Overview
0
Commits
10
Pipelines
0
Changes
2
Merged
Ghost User
requested to merge
json-validation
into
Development
5 years ago
Overview
0
Commits
10
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Viewing commit
a78ac426
Prev
Next
Show latest version
2 files
+
11
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
a78ac426
added listFactions for gm
· a78ac426
L4168
authored
5 years ago
src/game/game.controller.ts
+
7
−
0
Options
@@ -17,6 +17,7 @@ import { User } from '../user/user.decorator';
import
{
GameDTO
,
FlagboxEventDTO
}
from
'
./game.dto
'
;
import
{
ValidationPipe
}
from
'
../shared/validation.pipe
'
;
import
{
Roles
}
from
'
../shared/roles.decorator
'
;
import
{
GameEntity
}
from
'
./game.entity
'
;
@
Controller
(
'
game
'
)
export
class
GameController
{
@@ -48,6 +49,12 @@ export class GameController {
return
this
.
gameservice
.
returnGameInfo
(
id
);
}
@
Get
(
'
get-factions/:id
'
)
@
Roles
(
'
admin
'
)
async
returnGameFactions
(@
Param
(
'
id
'
)
id
:
GameEntity
)
{
return
this
.
gameservice
.
listFactions
(
id
);
}
@
Get
(
'
flag/:id
'
)
async
flagboxQuery
(@
Param
(
'
id
'
)
id
:
string
)
{
return
this
.
gameservice
.
flagboxQuery
(
id
);
Loading