Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game-server-flip-jump
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Gia Vương
game-server-flip-jump
Commits
8d0f13ca
Commit
8d0f13ca
authored
Aug 19, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add route /socket
parent
3be28113
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
server.js
dist/server.js
+3
-0
server.ts
src/server.ts
+3
-0
No files found.
dist/server.js
View file @
8d0f13ca
...
@@ -11,4 +11,7 @@ app.use(express_1.default.json());
...
@@ -11,4 +11,7 @@ app.use(express_1.default.json());
app
.
get
(
'/'
,
(
req
,
res
,
next
)
=>
{
app
.
get
(
'/'
,
(
req
,
res
,
next
)
=>
{
res
.
send
(
'Hello World'
);
res
.
send
(
'Hello World'
);
});
});
app
.
get
(
'/socket'
,
(
req
,
res
,
next
)
=>
{
res
.
send
(
'socket'
);
});
exports
.
default
=
app
;
exports
.
default
=
app
;
src/server.ts
View file @
8d0f13ca
...
@@ -8,5 +8,8 @@ app.use(express.json());
...
@@ -8,5 +8,8 @@ app.use(express.json());
app
.
get
(
'/'
,
(
req
:
Request
,
res
:
Response
,
next
:
NextFunction
)
=>
{
app
.
get
(
'/'
,
(
req
:
Request
,
res
:
Response
,
next
:
NextFunction
)
=>
{
res
.
send
(
'Hello World'
)
res
.
send
(
'Hello World'
)
})
})
app
.
get
(
'/socket'
,
(
req
:
Request
,
res
:
Response
,
next
:
NextFunction
)
=>
{
res
.
send
(
'socket'
)
})
export
default
app
;
export
default
app
;
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