mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-11-27 23:23:47 +00:00
15 lines
216 B
Go
15 lines
216 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"github.com/nxtrace/NTrace-core/trace"
|
|
)
|
|
|
|
func cacheClearHandler(c *gin.Context) {
|
|
trace.ClearCaches()
|
|
c.JSON(http.StatusOK, gin.H{"ok": true})
|
|
}
|