MCPcopy
hub / github.com/hugapi/hug / api

Method api

hug/routing.py:89–91  ·  view source on GitHub ↗

Sets the API that should contain this route

(self, api, **overrides)

Source from the content-addressed store, hash-verified

87 return self.where(validate=validation_function, **overrides)
88
89 def api(self, api, **overrides):
90 """Sets the API that should contain this route"""
91 return self.where(api=api, **overrides)
92
93 def requires(self, requirements, **overrides):
94 """Adds additional requirements to the specified route"""

Callers 2

hug_apiFunction · 0.45
test_apiMethod · 0.45

Calls 1

whereMethod · 0.95

Tested by 1

test_apiMethod · 0.36