Open huzaifahj opened 4 years ago
I've created an endpoints.php file containing standard code from your API docs at public/extensions/custom/endpoints/stripe/endpoints.php
public/extensions/custom/endpoints/stripe/endpoints.php
When I visit example.com/public/extensions/custom/endpoints/stripe/ or example.com/custom/stripe/ I get:
example.com/public/extensions/custom/endpoints/stripe/
example.com/custom/stripe/
{ "error": { "code": 3, "message": "Unauthorized request", "class": "Directus\\Exception\\UnauthorizedException", "file": "/var/directus/src/helpers/app.php", "line": 287 } }
public/extensions/custom/endpoints/stripe.php will also give me the same error
public/extensions/custom/endpoints/stripe.php
Directus version 8.6.1 installed with DigitalOcean One-Click Droplet.
When I open the .htaccess file in /endpoints it says deny from all. Is that normal? I've tried changing it and it has no effect
deny from all
Add project name to request:
example.com/<project_name>/custom/stripe
I've created an endpoints.php file containing standard code from your API docs at
public/extensions/custom/endpoints/stripe/endpoints.php
When I visit
example.com/public/extensions/custom/endpoints/stripe/
orexample.com/custom/stripe/
I get:{ "error": { "code": 3, "message": "Unauthorized request", "class": "Directus\\Exception\\UnauthorizedException", "file": "/var/directus/src/helpers/app.php", "line": 287 } }
public/extensions/custom/endpoints/stripe.php
will also give me the same errorDirectus version 8.6.1 installed with DigitalOcean One-Click Droplet.