Commit 7856007a authored by quentin.vrel's avatar quentin.vrel

Unsupported endpoint

parent 760199fa
......@@ -14,9 +14,6 @@ class DefaultController extends Controller
public function processRequest()
{
if ($this->request->getHttpMethod()=="GET" && empty($this->request->getUriParams())) {
return Response::errorResponse('{ "message" : "Please visit the API documentation at https://gvipers.imt-lille-douai.fr/QVrel/projet-cdaw/tree/master/doc."}');
}
return Response::errorResponse('{ "message" : "Unsupported endpoint"}');
return Response::errorResponse('{ "message" : "Unsupported endpoint, please visit the API documentation at https://gvipers.imt-lille-douai.fr/QVrel/projet-cdaw/tree/master/doc."}');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment