Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
Ygopro Arena Revive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Ygopro Arena Revive
Commits
bd8f0bb2
Commit
bd8f0bb2
authored
Jan 30, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
controller
parent
984f68cb
Pipeline
#2277
passed with stages
in 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/app.controller.ts
src/app.controller.ts
+18
-0
No files found.
src/app.controller.ts
View file @
bd8f0bb2
...
@@ -67,4 +67,22 @@ export class AppController {
...
@@ -67,4 +67,22 @@ export class AppController {
async
updateActivity
(@
Body
()
body
:
any
)
{
async
updateActivity
(@
Body
()
body
:
any
)
{
return
await
this
.
appService
.
updateActivity
(
body
);
return
await
this
.
appService
.
updateActivity
(
body
);
}
}
@
Post
(
'
votes
'
)
async
updateVotes
(@
Body
()
body
:
any
,
@
Res
()
res
:
express
.
Response
)
{
const
code
=
await
this
.
appService
.
updateVotes
(
body
);
res
.
status
(
code
).
json
({
code
});
}
@
Post
(
'
voteStatus
'
)
async
updateVoteStatus
(@
Body
()
body
:
any
,
@
Res
()
res
:
express
.
Response
)
{
const
code
=
await
this
.
appService
.
updateVoteStatus
(
body
);
res
.
status
(
code
).
json
({
code
});
}
@
Post
(
'
submitVote
'
)
async
submitVote
(@
Body
()
body
:
any
,
@
Res
()
res
:
express
.
Response
)
{
const
code
=
await
this
.
appService
.
submitVote
(
body
);
res
.
status
(
code
).
json
({
code
});
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment