Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source-group1
/
animal-Info
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
Eunsu486
2021-06-09 17:20:30 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
978bcb8f45e3d67365114a98312c424cc0d799da
978bcb8f
2 parents
43741da6
5ad320bf
Merge branch 'master' of
http://khuhub.khu.ac.kr/open-source-group1/animal-Info
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletions
.vscode/launch.json
routes/category.js
views/components/navigation.ejs
.vscode/launch.json
0 → 100644
View file @
978bcb8
{
//
IntelliSense를
사용하여
가능한
특성에
대해
알아보세요.
//
기존
특성에
대한
설명을
보려면
가리킵니다.
//
자세한
내용을
보려면
https
:
//go.microsoft.com/fwlink/?linkid=
830387
을(를)
방문하세요.
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"type"
:
"pwa-node"
,
"request"
:
"launch"
,
"name"
:
"Launch Program"
,
"skipFiles"
:
[
"<node_internals>/**"
],
"program"
:
"${workspaceFolder}
\\
bin
\\
www"
}
]
}
\ No newline at end of file
routes/category.js
View file @
978bcb8
...
...
@@ -14,6 +14,11 @@ router.get('/use', function (req, res) {
res
.
render
(
'result'
,
{
category
:
'use'
});
});
// 사용법
router
.
get
(
'/use'
,
function
(
req
,
res
)
{
res
.
render
(
'result'
,
{
category
:
'use'
});
});
// 사용자가 index 페이지에서 주소선택. 입력값받아오는 함수
router
.
post
(
'/'
,
function
(
req
,
res
)
{
var
body
=
req
.
body
;
...
...
@@ -21,6 +26,8 @@ router.post('/', function (req, res) {
console
.
log
(
gu_select
);
res
.
send
(
'Good'
);
});
//동물병원 함수
router
.
get
(
'/hospital'
,
function
(
req
,
res
)
{
//api
...
...
views/components/navigation.ejs
View file @
978bcb8
<ul class="nav nav-pills nav-stacked">
<li role="presentation"><a href="">사용법</a></li>
<li role="presentation"><a href="
/category/use
">사용법</a></li>
<li role="presentation" class="active"><a href="/category/hospital">🏥동물 병원🏥</a></li>
<li role="presentation"><a href="/category/medicine">💊동물 약국💊</a></li>
<li role="presentation"><a href="/category/appliance">🩺동물의료기기 판매🩺</a></li>
...
...
Please
register
or
login
to post a comment