Commit 760199fa authored by quentin.vrel's avatar quentin.vrel

redirection to the API doc

parent 2f87aafb
......@@ -14,6 +14,9 @@ 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"}');
}
}
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