Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
403
const
removeTrailingSlash = (
404
path: Router.PathInput
405
): Router.PathInput => (path.endsWith(
"/"
) ? path.slice(0, -1) : path) as any
406
407
/** @internal */
408
export
const
prefixPath: {
Callers
1
httpRouter.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected