mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-05-05 18:41:44 +00:00
feat: dyn middlewares based on js rt
This commit is contained in:
@@ -303,5 +303,13 @@ func ResetPassword(c *gin.Context) {
|
||||
"message": "",
|
||||
"data": password,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
func ReloadJSScripts(c *gin.Context) {
|
||||
middleware.ReloadJSScripts()
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"success": true,
|
||||
"message": "JavaScript 脚本已重新加载",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user