Skip to content

Email Validator Worker v1.0.2

Compare
Choose a tag to compare
@obfuscatedgenerated obfuscatedgenerated released this 12 May 14:43
· 8 commits to main since this release
f333b46

BREAKING CHANGE

This release adds version numbers to the route URL.
It also decides the route from the last 2 path segments, meaning the worker is exposed at any level of subdirectory above 2.
This allows for more flexible routing with Cloudflare Worker Routes.

Before:
The URL had to be [subdomain].(domain)/verify_email.

After:
The URL has to be at least [subdomain].(domain)/v1/verify_email. It can also be [subdomain].(domain)/[directory...]/v1/verify_email.
For example, api.example.com/mailer/v1/verify_email.

Attached is a pre-transpiled JS file. You can copy and paste this into the Cloudflare Dashboard's Quick Edit feature if you wish, but using wrangler is probably nicer.