16 lines
361 B
Go
16 lines
361 B
Go
package server
|
|
|
|
import (
|
|
"backend/util"
|
|
"net/http"
|
|
)
|
|
|
|
func getphoto(w http.ResponseWriter, r *http.Request) {
|
|
idStr := r.URL.Query().Get("id")
|
|
if idStr == "" {
|
|
util.Logformat(util.ERROR, "%s: Missing 'id' parameter.", util.GetFunctionName())
|
|
http.Error(w, "Missing or invalid parameters : id", http.StatusBadRequest)
|
|
} else {
|
|
sendResponse(w, 0)
|
|
}
|
|
}
|