We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<?php use Dbout\WpRestApi\Attributes\Route; use Dbout\WpRestApi\Attributes\Action; #[Route( namespace: 'app/v2', route: 'document/(?P<documentId>\d+)' )] class Document { #[Action(Method::GET)] public function get(\WP_REST_Request $request): \WP_REST_Response { // Add your logic $id = $request->get_param('documentId'); return new \WP_REST_Response([ 'success' => true, ]); } #[Action(Method::DELETE)] public function delete(\WP_REST_Request $request): \WP_REST_Response { // Add your logic $id = $request->get_param('documentId'); return new \WP_REST_Response([ 'success' => true, ]); } }
findClass not working with this file ... route/Document returned :(
route/Document
The text was updated successfully, but these errors were encountered:
#4 Fix find class
c0723b9
Merge pull request #5 from dimitriBouteille/4-fix-find-class
d85c36e
dimitriBouteille
Successfully merging a pull request may close this issue.
findClass not working with this file ...
route/Document
returned :(The text was updated successfully, but these errors were encountered: