Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pallets/werkzeug
/ link
Function
link
examples/couchy/views.py:48–52 ·
view source on GitHub ↗
(request, uid)
Source
from the content-addressed store, hash-verified
46
47
@expose(
"/u/<uid>"
)
48
def
link(request, uid):
49
url = URL.load(uid)
50
if
not url:
51
raise
NotFound()
52
return
redirect(url.target, 301)
53
54
55
@expose(
"/list/"
, defaults={
"page"
: 1})
Callers
nothing calls this directly
Calls
3
NotFound
Class · 0.90
redirect
Function · 0.90
load
Method · 0.80
Tested by
no test coverage detected