MCPcopy
hub / github.com/wzpan/wukong-robot / get

Method get

server/server.py:365–384  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

363
364class APIHandler(BaseHandler):
365 def get(self):
366 if not self.isValidated():
367 self.redirect("/login")
368 else:
369 content = ""
370 r = requests.get(
371 "https://raw.githubusercontent.com/wzpan/wukong-contrib/master/docs/api.md"
372 )
373 content = markdown.markdown(
374 r.text,
375 extensions=[
376 "codehilite",
377 "tables",
378 "fenced_code",
379 "meta",
380 "nl2br",
381 "toc",
382 ],
383 )
384 self.render("api.html", content=content)
385
386
387class UpdateHandler(BaseHandler):

Callers

nothing calls this directly

Calls 2

isValidatedMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected