Commit 51754a11 by 庄欣

city

parent b59b1607
<?php <?php
namespace App\Http\City\Controller; namespace App\Http\Controllers\City\Controller;
use App\Http\Controllers\ControllerBase; use App\Http\Controllers\ControllerBase;
class City extends ControllerBase class City extends ControllerBase
{ {
protected $prefix = "city";
} }
\ No newline at end of file
...@@ -124,4 +124,9 @@ Route::group(["prefix" => "category", 'namespace' => Provider::getNamespace("cat ...@@ -124,4 +124,9 @@ Route::group(["prefix" => "category", 'namespace' => Provider::getNamespace("cat
Route::get ("/pretty" , "Category@pretty"); Route::get ("/pretty" , "Category@pretty");
//某分类下的子分类 //某分类下的子分类
Route::get ("/{id}/child" , "Category@child")->where(['id' => '\d+']); Route::get ("/{id}/child" , "Category@child")->where(['id' => '\d+']);
});
Route::group(["prefix" => "city", 'namespace' => Provider::getNamespace("city")],function() {
//列表
Route::get("/", "City@index");
}); });
\ 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