Edit Expose doc

This commit is contained in:
Axel LE BOT 2019-07-27 12:07:57 +02:00
parent e2b5d4f135
commit b58172ba60

View file

@ -21,7 +21,20 @@ class Hooks {
const Hooks({this.before = const [], this.after = const []}); 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 { class Expose {
final String method; final String method;
final String path; final String path;