You've already forked RekomenciBackend
chore: some improvements
This commit is contained in:
@@ -41,7 +41,7 @@ lint:
|
||||
ruff check
|
||||
mypy
|
||||
codespell src tests
|
||||
bandit src tests
|
||||
bandit -r src || exit 0
|
||||
|
||||
[no-cd]
|
||||
[group("Formatters")]
|
||||
|
||||
@@ -39,7 +39,7 @@ async def send_notification(
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Notification device not found") from error
|
||||
|
||||
|
||||
@router.post("/notifications/register-device")
|
||||
@router.post("/notifications/register_device")
|
||||
async def register_notification_device(
|
||||
request: RegisterNotificationDeviceRequestModel,
|
||||
interactor: FromDishka[RegisterNotificationDeviceInteractor],
|
||||
|
||||
@@ -34,6 +34,7 @@ from template_project.web_api.ioc.idp import IdPProvider
|
||||
from template_project.web_api.ioc.interactor import InteractorProvider
|
||||
from template_project.web_api.ioc.notifications import NotificationServiceProvider
|
||||
from template_project.web_api.ioc.oauth import OAuthClientProvider
|
||||
from template_project.web_api.ioc.storage import StorageProvider
|
||||
|
||||
|
||||
class DatabaseClearer:
|
||||
@@ -83,7 +84,7 @@ def make_ioc(configuration: Configuration) -> AsyncContainer:
|
||||
CryptographerProvider(),
|
||||
OAuthClientProvider(),
|
||||
NotificationServiceProvider(),
|
||||
TestProvider(),
|
||||
StorageProvider(),
|
||||
validation_settings=STRICT_VALIDATION,
|
||||
context={
|
||||
ServerConfiguration: configuration.server,
|
||||
|
||||
Reference in New Issue
Block a user