class

Analyzer::Python::Router

Inherits Reference < Object

Router class for handling URL prefix joining

Constructors

new(prefix : String)
Source

Instance methods

join(url : String) : String
Source
mounted_prefixes

Effective prefixes this router is served under, one per inclusion path from an app (include_router(r, prefix="/v1") and again under "/v2" gives two). Empty when no app includes it.

Source
mounts

One router per mounted prefix, or itself when never included.

Source
prefix
Source
prefix=(prefix : String)
Source