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