Compare commits

...

2 Commits

Author SHA1 Message Date
03dfacc3df fix: default route 2023-08-30 21:23:08 +07:00
2eaf696b53 fix: tags not bound correctly 2023-08-30 21:18:15 +07:00
3 changed files with 3 additions and 4 deletions

View File

@ -52,7 +52,7 @@ func Start() {
g.StaticFile("/", "./web/static/index.html")
g.Static("/_app", "./web/static/_app")
g.Static("/data", config.CurrentConfig.DataDirectory)
g.Use(cors.Default())
InitializeRoutes(g)

View File

@ -1,8 +1,6 @@
package app
import (
"net/http"
"github.com/gin-gonic/gin"
)
@ -11,5 +9,5 @@ func InitializeFrontendRoutes(g *gin.Engine) {
}
func frontendHome(c *gin.Context) {
c.Redirect(http.StatusFound, "/")
c.File("./web/static/index.html")
}

View File

@ -108,6 +108,7 @@
<label for="tags" class="label">Tags</label>
<div class="control" id="tags">
<Tags
tags={form.tags}
addKeys={[9, 32]}
on:tags={onTagChange}
autoComplete={onAutocomplete}