This commit is contained in:
Liang Ding 2023-02-02 11:06:29 +08:00
parent b321185248
commit f37678a98b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 98 additions and 0 deletions

View file

@ -56,6 +56,10 @@ func renderTemplate(c *gin.Context) {
p := arg["path"].(string)
id := arg["id"].(string)
if util.InvalidIDPattern(id, ret) {
return
}
content, err := model.RenderTemplate(p, id)
if nil != err {
ret.Code = -1