pcgamedb/server/handler/clean_game.go
nite07 304517e241
Some checks failed
release / goreleaser (push) Failing after 2m23s
docker / prepare-and-build (push) Failing after 2m55s
trans to private
2024-11-20 19:09:04 +08:00

16 lines
224 B
Go

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