浏览代码

upload status template wasnt found

AETH-erial 1 年之前
父节点
当前提交
e594fc76ab
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      cmd/webserver/webserver.go

+ 5 - 0
cmd/webserver/webserver.go

@@ -66,9 +66,14 @@ func main() {
 		fmt.Sprintf("%s/templates/blogpost_editor.html", WEB_ROOT),
 		fmt.Sprintf("%s/templates/menu.html", WEB_ROOT),
 		fmt.Sprintf("%s/templates/link.html", WEB_ROOT),
+		fmt.Sprintf("%s/templates/upload_status.html", WEB_ROOT),
 		fmt.Sprintf("%s/templates/navigation.html", WEB_ROOT),
 		fmt.Sprintf("%s/templates/listing.html", WEB_ROOT),
 	)
+	renderer.AddFromFiles(
+		"upload_status",
+		fmt.Sprintf("%s/templates/upload_status.html", WEB_ROOT),
+	)
 	e := gin.Default()
 	e.HTMLRender = renderer
 	routes.Register(e, WEB_ROOT, DOMAIN_NAME, REDIS_PORT, REDIS_ADDR)