Function backend::judge

source ·
pub(crate) async fn judge(question: Path<String>) -> impl Responder
Expand description

Judges if players picked the right question. If it’s incorrect, 1HP is substracted from their health

How to use

The request structure is the following: http://ip_address/judge/<QUESTION_ID> where the <QUESTION_ID> is that which was supplied by the /question call It will reply with a json object containing “OK” if the operation succeeded.