Splats redirects


/news/*  /blog/:splat

This would redirect paths like /news/2004/01/10/my-story to /blog/2004/01/10/my-story.

So for rule @ here:

  from = "/api/*"
  to = "/.netlify/functions/gateway/:splat"

This would redirect paths like /api/feed to /.netlify/functions/gateway/feed, right?

However, why https://go-function-demo.netlify.app/api/feed is OK while
https://go-function-demo.netlify.app/.netlify/functions/gateway/feed is not OK?

What I’m missing please?

You’ve configured your code to be accessible on /api/feed: netlify-go-function-demo/cmd/gateway/main.go at master · carlmjohnson/netlify-go-function-demo (github.com) and not the other URL.