Поправил роутинг
This commit is contained in:
parent
cb558d05fe
commit
3e1ae9c286
2 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>nQuest</title>
|
||||
<title>NQuest</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
|
1
main.go
1
main.go
|
@ -153,6 +153,7 @@ func main() {
|
|||
api.RegisterHandlersWithBaseURL(codegen, handler, "/api")
|
||||
|
||||
e.StaticFS("/", distDirFS)
|
||||
e.FileFS("/", "index.html", distIndexHtml)
|
||||
e.FileFS("/*", "index.html", distIndexHtml)
|
||||
|
||||
// --[ System ]--
|
||||
|
|
Loading…
Reference in a new issue