Edit Expose doc
This commit is contained in:
parent
e2b5d4f135
commit
b58172ba60
1 changed files with 14 additions and 1 deletions
|
@ -21,7 +21,20 @@ class Hooks {
|
|||
const Hooks({this.before = const [], this.after = const []});
|
||||
}
|
||||
|
||||
/// Exposes a [Controller] to the Internet.
|
||||
/// Exposes a [Controller] or a [Controller] method to the Internet.
|
||||
///
|
||||
/// ```dart
|
||||
/// @Expose('/elements')
|
||||
/// class ElementController extends Controller {
|
||||
///
|
||||
/// @Expose('')
|
||||
/// getList(){}
|
||||
///
|
||||
/// @Expose('/:elementId')
|
||||
/// getElement(int elementId){}
|
||||
///
|
||||
/// }
|
||||
/// ```
|
||||
class Expose {
|
||||
final String method;
|
||||
final String path;
|
||||
|
|
Loading…
Reference in a new issue