Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
railgun-routing-server
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
Railgun
railgun-routing-server
Commits
66638b1a
Commit
66638b1a
authored
Aug 27, 2022
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f6b4f364
Pipeline
#16060
passed with stages
in 3 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
server/src/Api.ts
server/src/Api.ts
+1
-1
server/src/main.ts
server/src/main.ts
+1
-1
No files found.
server/src/Api.ts
View file @
66638b1a
...
@@ -6,7 +6,7 @@ import connections from '../import/connections.json';
...
@@ -6,7 +6,7 @@ import connections from '../import/connections.json';
export
const
api
=
express
.
Router
();
export
const
api
=
express
.
Router
();
api
.
get
(
'
/
'
,
function
(
req
,
res
,
next
)
{
api
.
get
(
'
/
state
'
,
function
(
req
,
res
,
next
)
{
const
result
=
Router
.
all
.
map
((
from
)
=>
({
const
result
=
Router
.
all
.
map
((
from
)
=>
({
id
:
from
.
id
,
id
:
from
.
id
,
peers
:
from
.
peers
,
peers
:
from
.
peers
,
...
...
server/src/main.ts
View file @
66638b1a
...
@@ -10,7 +10,7 @@ import path from 'path';
...
@@ -10,7 +10,7 @@ import path from 'path';
// http
// http
const
app
=
express
();
const
app
=
express
();
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
'
public
'
)));
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
'
public
'
)));
app
.
use
(
'
/
'
,
api
);
app
.
use
(
'
/
api
'
,
api
);
app
.
listen
(
config
.
port
);
app
.
listen
(
config
.
port
);
// udp routing protocol
// udp routing protocol
...
...
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