Skip to content
New issue

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

Not found Route with PATCH #8

Open
ramonvic opened this issue Apr 16, 2016 · 1 comment
Open

Not found Route with PATCH #8

ramonvic opened this issue Apr 16, 2016 · 1 comment

Comments

@ramonvic
Copy link

I am facing trouble with PATCH endpoints, they are always return 404 response, but if I change to any other, the request work like a charm, follow the Resource Code:

$api->resource(
 Resource::factory('/clients', 'Client')
    ->deny(AclRoles::UNAUTHORIZED)
    ->model(Client::class)
    ->expectsJsonData()
    ->handler(ClientController::class)
    ->transformer(ClientTransformer::class)
    ->endpoint(Endpoint::create()
    ->allow(AclRoles::UNAUTHORIZED)
    )
    ->endpoint(Endpoint::patch('/partial/{id}', 'updatePartial')
        ->allow(AclRoles::UNAUTHORIZED)
    )
    ->endpoint(Endpoint::put('/partial/{id}', 'updatePartial')
        ->allow(AclRoles::UNAUTHORIZED)
    )
);
@ruudboon
Copy link

Ahh thnx! Hopefully it will be merged soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants