14 lines
314 B
Go
14 lines
314 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
"path"
|
|
)
|
|
|
|
func HintHandler(w http.ResponseWriter, r *http.Request, team string, sURL []string) {
|
|
// Enqueue file for backend treatment
|
|
if saveTeamFile(path.Join(team, "hint"), w, r) {
|
|
http.Error(w, "{\"errmsg\":\"Demande d'astuce acceptée...\"}", http.StatusAccepted)
|
|
}
|
|
}
|