This commit is contained in:
suguo.yao 2024-09-19 17:24:33 +08:00
parent fcf39ed838
commit 0da9e35d8e
2 changed files with 12 additions and 0 deletions

1
app.js
View File

@ -24,6 +24,7 @@ const app=express()
app.use(koaJwt({ secret: 'yiyuan0911'}).unless({
path: [
/^\/static|css|js|img|fonts|favicon|manifest/,
/^\/user\/login/,
/^\/user\/register/
]

11
public/index.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>hello</h1>
</body>
</html>