Recent Activity
Here's what @hexacker has been up to this past year
-
Anniversary Thanks for being an Acocasts member for 1 year
-
Completed lesson How To Add Social Authentication with AdonisJS Ally & Google
-
Completed lesson How To Paginate Filtered Query Results
-
Completed lesson Pagination First, Last, Next, and Previous Buttons
-
Replied to Awesome, thank so much Abdelmadjid! I was able to get it installed...
Happy to hear that you liked it. Let me know if you have any feedback
-
Replied to This looks great, Abdelmadjid! Is there any trick to getting...
Hi Tom,
Thanks again for the support. I spent the whole day fixing and tweaking the extension. It ready to use now 😎. Check the repo, pull, and you're ready to go
-
Replied to This looks great, Abdelmadjid! Is there any trick to getting...
Hi Tom,
Thanks for the support.
First, I must let you know that the extension is not working properly now, it still needs some work regarding the correct highlighting.
You can try the extension as follow:
1- Clone the extension repo on your machine.
2- Open Zed Extension manager: Zed → Extensions or directly using SHIFT+CMD+X
3- Install Dev Extension where you can give it the folder where you cloned the extension repo.
Let me know if you have any question.
-
Started discussion EdgeJS extension for Zed code editor
-
Completed lesson Allowing Admins to Delete Movies and their Relationships
-
Completed lesson Restricting Login Attempts with Rate Limiting
-
Replied to discussion Add a webhook endpoint to AdonisJS web app | FIXED
Hi again,
How I can add a dynamic exception to the shield config. Currently, it looks like this:
csrf: { enabled: true, exceptRoutes: ['/webhook', '/users', '/subscription'], enableXsrfCookie: true, methods: ['POST', 'PUT', 'PATCH', 'DELETE'], },`
Copied!The webhook endpoint must looks something like this:
/webhook/verify/:provider/:identifier
How can I achieve that
____________
#Update:
I have fixed it like this
exceptRoutes: (ctx) => { const url = ctx.request.url() const staticRoutes = ['/users', '/subscription'] const dynamicPatterns = [/^\/webhook\/verify\/[^/]+\/[^/]+$/] const isExcluded = staticRoutes.some((route) => url.startsWith(route)) || dynamicPatterns.some((regex) => regex.test(url)) return isExcluded },
Copied!Is there a better way for solving this?
-
Completed lesson New Unique & Exist Validation Overloads in AdonisJS 6
-
Completed lesson Allowing Admins to Update Movies and Clear Values
-
Completed lesson Paginated Admin Movie Table
-
Started discussion TailwindCSS plugins installation issue
-
Completed lesson Singleton Services and the Idea of Caching
-
Completed lesson Improved Caching with Redis
-
Completed lesson Validating Query String Filter Values