DocumentationAmertaPayloadUtilitiesGetPathSegmentFunctions

Get Path Segment

amerta


amerta / amerta/payload/utilities/getPathSegment / getPathSegment

Function: getPathSegment()

getPathSegment(type): string

Defined in: amerta/payload/utilities/getPathSegment.ts:32

Parameters

| Parameter | Type | | ------ | ------ | | type | "posts" | "collections" | "products" | "product-brands" | "product-tags" | "product-options" | "product-media" | "product-reviews" | "pages" | "categories" | "tags" | "translations" | "store" | "sales-channel" | "orders" | "customers" | "customer-groups" | "customer-tags" | "users" | "menu" | "media" | "currency" | "country" | "tax-rate" | "shipping" | "payment-method" | "payments" | "cart" | "cart-rules" | "wishlist" | "coupons" | "email-templates" | "redirects" | "forms" | "form-submissions" | "payload-kv" | "payload-jobs" | "payload-locked-documents" | "payload-preferences" | "payload-migrations" | "collection" | "page" | "category" | "account" | "login" | "logout" | "post" | "create-account" | "recover-password" | "resend-verification-email" | "reset-password" | "verify-email" | "addresses" | "profile" | "blog" | "products-page" | "brands" | "checkout" |

Returns

string