1
|
|
|
<?php |
2
|
|
|
namespace Statical\SlimStatic; |
3
|
|
|
|
4
|
|
|
class Route extends SlimSugar |
5
|
|
|
{ |
6
|
|
|
public static function map() |
7
|
|
|
{ |
8
|
|
|
return call_user_func_array(array(static::$slim, 'map'), func_get_args()); |
9
|
|
|
} |
10
|
|
|
|
11
|
|
|
public static function get() |
12
|
|
|
{ |
13
|
|
|
return call_user_func_array(array(static::$slim, 'get'), func_get_args()); |
14
|
|
|
} |
15
|
|
|
|
16
|
|
|
public static function post() |
17
|
|
|
{ |
18
|
|
|
return call_user_func_array(array(static::$slim, 'post'), func_get_args()); |
19
|
|
|
} |
20
|
|
|
|
21
|
|
|
public static function put() |
22
|
|
|
{ |
23
|
|
|
return call_user_func_array(array(static::$slim, 'put'), func_get_args()); |
24
|
|
|
} |
25
|
|
|
|
26
|
|
|
public static function patch() |
27
|
|
|
{ |
28
|
|
|
return call_user_func_array(array(static::$slim, 'patch'), func_get_args()); |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
public static function delete() |
32
|
|
|
{ |
33
|
|
|
return call_user_func_array(array(static::$slim, 'delete'), func_get_args()); |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
public static function options() |
37
|
|
|
{ |
38
|
|
|
return call_user_func_array(array(static::$slim, 'options'), func_get_args()); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
public static function group() |
42
|
|
|
{ |
43
|
|
|
return call_user_func_array(array(static::$slim, 'group'), func_get_args()); |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
public static function any() |
47
|
|
|
{ |
48
|
|
|
return call_user_func_array(array(static::$slim, 'any'), func_get_args()); |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
public static function urlFor() |
52
|
|
|
{ |
53
|
|
|
return call_user_func_array(array(static::$slim, 'urlFor'), func_get_args()); |
54
|
|
|
} |
55
|
|
|
} |
56
|
|
|
|