Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from fastapi import APIRouter

from ..repository import Repository
from backend.repository import Repository
from .ping import get_ping_router
from .user import get_user_router

Check failure on line 5 in backend/handler/handler.py

View workflow job for this annotation

GitHub Actions / lint (3.10)

Ruff (I001)

backend/handler/handler.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 5 in backend/handler/handler.py

View workflow job for this annotation

GitHub Actions / lint (3.12)

Ruff (I001)

backend/handler/handler.py:1:1: I001 Import block is un-sorted or un-formatted


def get_router(repository: Repository) -> APIRouter:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from fastapi import APIRouter
from pydantic import BaseModel

from ..repository import Repository
from backend.repository import Repository


class PingResponse(BaseModel):
message: str


def get_ping_router(repoository: Repository) -> APIRouter:

Check failure on line 11 in backend/handler/ping.py

View workflow job for this annotation

GitHub Actions / lint (3.10)

Ruff (ARG001)

backend/handler/ping.py:11:21: ARG001 Unused function argument: `repoository`

Check failure on line 11 in backend/handler/ping.py

View workflow job for this annotation

GitHub Actions / lint (3.12)

Ruff (ARG001)

backend/handler/ping.py:11:21: ARG001 Unused function argument: `repoository`
"""Create a router for the ping endpoint.

Returns:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from fastapi import APIRouter
from pydantic import BaseModel

from ..repository import Repository
from backend.repository import Repository


class User(BaseModel):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pydantic import BaseModel
from tinydb import Query, TinyDB

from ..domain import User
from backend.domain import User


class UserRepository(BaseModel):
Expand Down
3 changes: 0 additions & 3 deletions cookiecutter.json

This file was deleted.

Loading