From 365d11aca7155da0a287aeb299bfde2ea873b613 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 22 Dec 2022 20:13:52 +0200 Subject: [PATCH] fix(docs): fixed redirects for api reference (#2888) --- www/docs/netlify.toml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/www/docs/netlify.toml b/www/docs/netlify.toml index 59111682b8..03b920b820 100644 --- a/www/docs/netlify.toml +++ b/www/docs/netlify.toml @@ -3,12 +3,28 @@ to = "/api/store" [[redirects]] - from = "/api/store/*" - to = "/api/store" + from = "/api/store/auth/*" + to = "/api/store/#tag/Auth" [[redirects]] - from = "/api/admin/*" - to = "/api/admin" + from = "/api/store/cart/*" + to = "/api/store/#tag/Cart" + +[[redirects]] + from = "/api/store/collection/*" + to = "/api/store/#tag/Collection" + +[[redirects]] + from = "/api/store/product/*" + to = "/api/store/#tag/Product" + +[[redirects]] + from = "/api/admin/auth/*" + to = "/api/admin/#tag/Auth" + +[[redirects]] + from = "/api/admin/users/*" + to = "/api/admin/#tag/User" [[redirects]] from = "/how-to/headless-ecommerce-store-with-gatsby-contentful-medusa"