diff --git a/lib/src/core/metadata.dart b/lib/src/core/metadata.dart index 877073ff..b0d245a2 100644 --- a/lib/src/core/metadata.dart +++ b/lib/src/core/metadata.dart @@ -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;