MCPcopy Create free account
hub / github.com/Effect-TS/effect / removeTrailingSlash

Function removeTrailingSlash

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

Source from the content-addressed store, hash-verified

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

Callers 1

httpRouter.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected