File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
examples/as_app/skeleton/src Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 12
12
13
13
def enabled_handler (enabled : bool , nc : NextcloudApp ) -> str :
14
14
# This will be called each time application is `enabled` or `disabled`
15
- # All scopes that application required already granted before this step.
16
15
# NOTE: `user` is unavailable on this step, so all NC API calls that require it will fail as unauthorized.
17
16
print (f"enabled={ enabled } " )
18
17
if enabled :
@@ -32,5 +31,5 @@ def initialization():
32
31
33
32
if __name__ == "__main__" :
34
33
# Wrapper around `uvicorn.run`.
35
- # You are free to call it directly, just use `APP_HOST` and `APP_PORT` from the environment.
34
+ # You are free to call it directly, with just using the `APP_HOST` and `APP_PORT` variables from the environment.
36
35
run_app ("main:APP" , log_level = "trace" )
You can’t perform that action at this time.
0 commit comments