-
Notifications
You must be signed in to change notification settings - Fork 8
/
route.php
33 lines (29 loc) · 1.13 KB
/
route.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// use think\Request;
Route::get('think', function () {
return 'hello,ThinkPHP5!';
});
// Route::get('get', function (Request $request) {
// return $request;
// });
Route::get('allProducts', 'index/allProducts');
Route::get('get', 'index/get');
Route::post('get', 'index/get');
Route::post('image', 'index/image');
Route::post('post', 'index/post');
Route::get('post', 'index/post');
Route::delete('delete', 'index/delete');
// Route::get('delete', 'index/delete');
Route::put('put', 'index/put');
Route::get('hello/:name', 'index/hello');
return [
];