First, install the Validator using the adonis
command:
|
|
Create a resource route
|
|
Define the route in start/route.js
Now, we can make a Validator
for /posts/store
This will create a validator in /app/Validators
.
Finally, To define a validator for a specific route in the definition, do something like this:
PSSS: I want this as short as it can while still answering question regarding the final code. 🥂