enabledCors static method
void
enabledCors(
- dynamic callback()
group of route to enabled cors
Route.enabledCors(() {
Route.get('/ping', controller);
});
Implementation
static void enabledCors(Function() callback) {
_cors(true, callback);
}