MCPcopy
hub / github.com/Effect-TS/effect / removeTrailingSlash

Function removeTrailingSlash

packages/platform/src/internal/httpRouter.ts:403–405  ·  view source on GitHub ↗
(
  path: Router.PathInput
)

Source from the content-addressed store, hash-verified

401 ) as any
402
403const removeTrailingSlash = (
404 path: Router.PathInput
405): Router.PathInput => (path.endsWith("/") ? path.slice(0, -1) : path) as any
406
407/** @internal */
408export const prefixPath: {

Callers 1

httpRouter.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected