Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최은석
/
ossw-project
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
채지성
2022-05-09 23:52:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2ae3fac4d728790f90dc97ed5bb73e5e9dfa4f1e
2ae3fac4
0 parents
first
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
server.js
static/index.html
server.js
0 → 100644
View file @
2ae3fac
// server.js
const
express
=
require
(
'express'
);
const
app
=
express
();
const
bodyParser
=
require
(
'body-parser'
);
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
true
}));
app
.
listen
(
8080
,
function
()
{
console
.
log
(
'listening on 8080'
)
})
app
.
get
(
'/'
,
function
(
req
,
res
){
res
.
sendFile
(
__dirname
+
'/static/index.html'
)
})
app
.
post
(
'/post'
,
function
(
req
,
res
){
console
.
log
(
req
);
});
\ No newline at end of file
static/index.html
0 → 100644
View file @
2ae3fac
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
</head>
<body>
<form
action=
"/post"
method=
"post"
name=
"ti"
>
<input
type=
"text"
>
<button
type=
"submit"
>
submit
</button>
</form>
<div></div>
</body>
</html>
\ No newline at end of file
Please
register
or
login
to post a comment