mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-12 17:32:27 +08:00
fix post page
This commit is contained in:
6
api.go
6
api.go
@@ -46,6 +46,8 @@ func init() {
|
||||
APIs["trash-delete"] = apiTrashDelete
|
||||
// 恢复回收箱
|
||||
APIs["trash-recover"] = apiTrashRecover
|
||||
// 上传文件
|
||||
APIs["file-upload"] = apiFileUpload
|
||||
}
|
||||
|
||||
func apiAccount(c *gin.Context) {
|
||||
@@ -389,6 +391,10 @@ func apiTrashRecover(c *gin.Context) {
|
||||
responseNotice(c, NOTICE_SUCCESS, "恢复成功", "")
|
||||
}
|
||||
|
||||
func apiFileUpload(c *gin.Context) {
|
||||
|
||||
}
|
||||
|
||||
func responseNotice(c *gin.Context, typ, content, hl string) {
|
||||
if hl != "" {
|
||||
c.SetCookie("notice_highlight", hl, 86400, "/", "", true, false)
|
||||
|
||||
Reference in New Issue
Block a user