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:
|
# External API redirects/mirrors:
|
||||||
# Must set `force = true` and wildcard /api/* rule goes last.
|
# 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
|
## Report URI endpoints
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/api/report"
|
from = "/api/report"
|
||||||
@@ -122,17 +133,6 @@
|
|||||||
X-Frame-Options = "SAMEORIGIN"
|
X-Frame-Options = "SAMEORIGIN"
|
||||||
X-XSS-Protection = "1; mode=block"
|
X-XSS-Protection = "1; mode=block"
|
||||||
X-Got-Milk = "2%"
|
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
|
## Prettier URLs for Netlify Functions
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/api/*"
|
from = "/api/*"
|
||||||
|
Reference in New Issue
Block a user