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 1212
1313def enabled_handler (enabled : bool , nc : NextcloudApp ) -> str :
1414 # This will be called each time application is `enabled` or `disabled`
15- # All scopes that application required already granted before this step.
1615 # NOTE: `user` is unavailable on this step, so all NC API calls that require it will fail as unauthorized.
1716 print (f"enabled={ enabled } " )
1817 if enabled :
@@ -32,5 +31,5 @@ def initialization():
3231
3332if __name__ == "__main__" :
3433 # 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.
3635 run_app ("main:APP" , log_level = "trace" )
You can’t perform that action at this time.
0 commit comments