Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-open-source
/
BaseBallSimulator
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
오진혁
2021-06-10 03:17:58 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f05edce4815630a77edc2f53c216c89995b7dd89
f05edce4
1 parent
e388d1d8
Add server.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
server.js
server.js
0 → 100644
View file @
f05edce
const
express
=
require
(
'express'
);
const
app
=
express
();
app
.
use
(
express
.
static
(
__dirname
));
app
.
listen
(
8080
,
function
(){
console
.
log
(
'listening on 8080'
);
});
app
.
get
(
'/'
,
function
(
req
,
res
){
res
.
sendFile
(
__dirname
+
'/main.html'
);
});
app
.
get
(
'/main.html'
,
function
(
req
,
res
){
res
.
sendFile
(
__dirname
+
'/main.html'
);
});
app
.
get
(
'/introduction.html'
,
function
(
req
,
res
){
res
.
sendFile
(
__dirname
+
'/introduction.html'
);
});
app
.
get
(
'/calendar.html'
,
function
(
req
,
res
){
res
.
sendFile
(
__dirname
+
'/calendar.html'
);
});
app
.
get
(
'/simulation.html'
,
function
(
req
,
res
){
res
.
sendFile
(
__dirname
+
'/simulation.html'
);
});
Please
register
or
login
to post a comment