MCPcopy
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>")
48def 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

NotFoundClass · 0.90
redirectFunction · 0.90
loadMethod · 0.80

Tested by

no test coverage detected