mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-18 15:25:33 -04:00
fix webmention API endpoints
This commit is contained in:
22
netlify.toml
22
netlify.toml
@@ -80,6 +80,17 @@
|
||||
|
||||
# External API redirects/mirrors:
|
||||
# Must set `force = true` and wildcard /api/* rule goes last.
|
||||
## Webmention.io endpoints
|
||||
[[redirects]]
|
||||
from = "/api/mention"
|
||||
to = "https://webmention.io/jarv.is/webmention"
|
||||
status = 200
|
||||
force = true
|
||||
[[redirects]]
|
||||
from = "/api/ping"
|
||||
to = "https://webmention.io/jarv.is/xmlrpc"
|
||||
status = 200
|
||||
force = true
|
||||
## Report URI endpoints
|
||||
[[redirects]]
|
||||
from = "/api/report"
|
||||
@@ -122,17 +133,6 @@
|
||||
X-Frame-Options = "SAMEORIGIN"
|
||||
X-XSS-Protection = "1; mode=block"
|
||||
X-Got-Milk = "2%"
|
||||
## Webmention.io endpoints
|
||||
[[redirects]]
|
||||
from = "/api/mention"
|
||||
to = "https://webmention.io/jarv.is/webmention"
|
||||
status = 307 # like temporary 302 redirect but retains POST data
|
||||
force = true
|
||||
[[redirects]]
|
||||
from = "/api/ping"
|
||||
to = "https://webmention.io/jarv.is/xmlrpc"
|
||||
status = 307
|
||||
force = true
|
||||
## Prettier URLs for Netlify Functions
|
||||
[[redirects]]
|
||||
from = "/api/*"
|
||||
|
Reference in New Issue
Block a user