chirpy_server/reset.go
2024-10-14 23:00:46 +02:00

10 lines
144 B
Go

package main
import (
"net/http"
)
func (cfg *apiConfig) serveReset(w http.ResponseWriter, r *http.Request) {
cfg.fileserverHits.Store(0)
}