MCPcopy
hub / github.com/logto-io/logto / tableToPathname

Function tableToPathname

packages/core/src/utils/SchemaRouter.ts:78–78  ·  view source on GitHub ↗
(tableName: string)

Source from the content-addressed store, hash-verified

76 * ```
77 */
78export const tableToPathname = (tableName: string) => tableName.replaceAll('_', '-');
79
80/**
81 * Generate the camel case schema ID column name.

Callers 4

constructorMethod · 0.85
addRelationRoutesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected