pcgamedb/server/handler/clean_game.go
2024-11-15 15:02:45 +08:00

16 lines
260 B
Go

package handler
import (
"net/http"
"github.com/nitezs/pcgamedb/log"
"github.com/nitezs/pcgamedb/task"
"github.com/gin-gonic/gin"
)
func CleanGameHandler(ctx *gin.Context) {
task.Clean(log.TaskLogger)
ctx.JSON(http.StatusOK, gin.H{"status": "ok"})
}