Image Optimization in Directus
Directus can serve images on a website from the file library using the asset URL, however, if these images are too large, it will impact the performance of both your web application and Directus itself.
How to Logout of Directus
Directus has the amazing ability to keep us logged in even when we close the browser. This saves us so much time however, what happens when we need to log out of Directus?
How to perform an API POST Query
Create and update items in your collection using the API.
How to use API Authentication
Every API is different when it comes to Authentication but in Directus, all you need is a Bearer token.
How to create an API Authentication Token
Create a new access token in the User Directory. Here you can generate a token and assign a role.
Show Images on a Website
Adjust file permissions to allow images from the Media Library to be used on a website without authentication.
How to send an Email
Use workflows to send emails to any recipient(s). Simply choose your trigger, set any required conditions then use the "send an email" action.
How to Restrict Access to Public Assets
Using the Cross-Origin Resource Sharing policy, we can restrict which domains are allowed to access our public assets.
How to send a Notification
To send a notification, you will need to create a workflow with the desired trigger, then fetch or specify the recipient(s) and compose the notification.
How to trigger a Flow
Run automated workflows using Directus Flows. These can be triggered by user events, external webhooks or scheduled timepoints.