dmcbrn / laravel-email-database-log

A simple database logger for all outgoing emails sent by Laravel website.
MIT License
15 stars 12 forks source link

Separate routes prefix for webhooks. #9

Closed kentdahl closed 2 years ago

kentdahl commented 3 years ago

Add configurable separate route prefix for webhooks, with fallback to the regular one.

Rationale is that the webhooks usually belong in an API focused part of the routes, separate from administrative pages.

Typical usage:

EMAIL_LOG_ROUTES_PREFIX=admin
EMAIL_LOG_ROUTES_WEBHOOK_PREFIX=api