Поправил роутинг

This commit is contained in:
Александр Кирюхин 2024-01-20 23:57:16 +03:00
parent cb558d05fe
commit 3e1ae9c286
2 changed files with 2 additions and 1 deletions

View file

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>nQuest</title> <title>NQuest</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View file

@ -153,6 +153,7 @@ func main() {
api.RegisterHandlersWithBaseURL(codegen, handler, "/api") api.RegisterHandlersWithBaseURL(codegen, handler, "/api")
e.StaticFS("/", distDirFS) e.StaticFS("/", distDirFS)
e.FileFS("/", "index.html", distIndexHtml)
e.FileFS("/*", "index.html", distIndexHtml) e.FileFS("/*", "index.html", distIndexHtml)
// --[ System ]-- // --[ System ]--