MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / decorated_view

Function decorated_view

src/astroprint/api/setup.py:32–37  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

30 """
31 @wraps(func)
32 def decorated_view(*args, **kwargs):
33 # if OctoPrint hasn't been set up yet, allow
34 if settings().getBoolean(["server", "firstRun"]):
35 return func(*args, **kwargs)
36 else:
37 return make_response("AstroBox is already setup", 403)
38 return decorated_view
39
40@api.route('/setup/name', methods=['GET'])

Callers

nothing calls this directly

Calls 2

settingsFunction · 0.90
getBooleanMethod · 0.80

Tested by

no test coverage detected