Skip to content

Commit 10417cf

Browse files
committed
v0.10.0 [publish]
Signed-off-by: Alexander Piskun <[email protected]>
1 parent 8a030f1 commit 10417cf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,17 @@ from contextlib import asynccontextmanager
6868
from fastapi import FastAPI
6969

7070
from nc_py_api import NextcloudApp
71-
from nc_py_api.ex_app import LogLvl, run_app, set_handlers
71+
from nc_py_api.ex_app import AppAPIAuthMiddleware, LogLvl, run_app, set_handlers
7272

7373

7474
@asynccontextmanager
75-
async def lifespan(_app: FastAPI):
76-
set_handlers(APP, enabled_handler)
75+
async def lifespan(app: FastAPI):
76+
set_handlers(app, enabled_handler)
7777
yield
7878

7979

8080
APP = FastAPI(lifespan=lifespan)
81+
APP.add_middleware(AppAPIAuthMiddleware)
8182

8283

8384
def enabled_handler(enabled: bool, nc: NextcloudApp) -> str:

nc_py_api/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version of nc_py_api."""
22

3-
__version__ = "0.10.0.dev0"
3+
__version__ = "0.10.0"

0 commit comments

Comments
 (0)