Toggle navigation
Toggle navigation
This project
Loading...
Sign in
HyeonJun Jeon
/
Extended-Calendar
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
HyeonJun Jeon
2022-06-07 21:44:31 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
67a2673ebbc5bc3bf76e2c95fd7ea3e8ae2d5b94
67a2673e
1 parent
b73c5611
[Style] Integrate react and express
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
server/server.js
server/server.js
View file @
67a2673
...
...
@@ -38,10 +38,10 @@ app.use("/db", dbRouter);
// } else console.log("Incorrect user ID or password.");
// });
// app.use(express.static(path.join(__dirname, '../build'
)));
// app.get('*'
, function (요청, 응답) {
// 응답.sendFile(path.join(__dirname, '../build/index.html'
));
//
});
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
"../build"
)));
app
.
get
(
"*"
,
function
(
요청
,
응답
)
{
응답
.
sendFile
(
path
.
join
(
__dirname
,
"../build/index.html"
));
});
app
.
listen
(
3001
,
function
()
{
console
.
log
(
"listening on 3001"
);
...
...
Please
register
or
login
to post a comment