Skip to content

craft-hub / isLocalDirectoryMutation

Function: isLocalDirectoryMutation() ​

isLocalDirectoryMutation(method, pathname): boolean

Defined in: packages/craft-hub/src/host-environment.ts:21

Guard directory-oriented mutation routes; this is not a general hosted API authorization policy.

Parameters ​

method ​

string

pathname ​

string

Returns ​

boolean

Released under the MIT License.