For use with dispatchSubsection. Calls your filter with the request and if your filter returns false, this issues the given errorCode and stops processing.
bool hasAdminPermissions(Cgi cgi) { return true; } mixin DispatcherMain!( "/admin".dispatchSubsection!( passFilterOrIssueError!(hasAdminPermissions, 403), KeepExistingPresenter, "/".serveApi!AdminFunctions ) );
See Implementation
Added January 28, 2023 (dub v11.0)
For use with dispatchSubsection. Calls your filter with the request and if your filter returns false, this issues the given errorCode and stops processing.