why?
This commit is contained in:
parent
fcf39ed838
commit
0da9e35d8e
1
app.js
1
app.js
|
|
@ -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/
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
Loading…
Reference in New Issue