Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminApi4Tpl
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminApi4Tpl
Commits
51754a11
Commit
51754a11
authored
Oct 17, 2016
by
庄欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
city
parent
b59b1607
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
app/Http/Controllers/City/Controller/City.php
+3
-2
routes/api.php
+6
-0
No files found.
app/Http/Controllers/City/Controller/City.php
View file @
51754a11
<?php
namespace
App\Http
\City\Controller
;
namespace
App\Http\Controllers
\City\Controller
;
use
App\Http\Controllers\ControllerBase
;
class
City
extends
ControllerBase
{
protected
$prefix
=
"city"
;
}
\ No newline at end of file
routes/api.php
View file @
51754a11
...
...
@@ -124,4 +124,9 @@ Route::group(["prefix" => "category", 'namespace' => Provider::getNamespace("cat
Route
::
get
(
"/pretty"
,
"Category@pretty"
);
//某分类下的子分类
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment