pcgamedb/server/handler/clean_game.go

15 lines
223 B
Go
Raw Normal View History

2024-09-24 06:17:11 -04:00
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"})
}