Commit 6e052986 authored by hujun's avatar hujun

处理错误的url

parent c92954b3
......@@ -32,4 +32,13 @@ class Index extends Basic
return $this->response("request success","200",$result);
}
/**
* 处理错误的url
*
* @return type
*/
public function miss() {
return $this->response('101','URL is error');
}
}
......@@ -48,6 +48,9 @@ Route::group('api',[
//get
'sendSms/:phone' => ['api/member/sendSms', ['method' => 'get']], //发送短信
'index' => ['api/member/index', ['method' => 'get']],
//get broker
'getBroker'=> ['api/broker/index',['method'=>'get']],
//post member
......@@ -59,4 +62,5 @@ Route::group('api',[
'shopDetail' => ['api/shop/getShopDetail', ['method' => 'get']],
]);
\ No newline at end of file
Route::miss('api/index/miss');//处理错误的url
\ No newline at end of file
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