Skip to content

Commit

Permalink
Merge pull request #19 from tmeiczin/tjm/auth
Browse files Browse the repository at this point in the history
Tjm/auth
  • Loading branch information
tmeiczin authored May 16, 2024
2 parents 6dca81a + 7e024fa commit aab1897
Show file tree
Hide file tree
Showing 6 changed files with 342 additions and 96 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ requires = [

[project]
name = "reliqua"
version = "0.0.1"
version = "0.0.2"
description = "Simple, efficient, intuitive API Framework"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
4 changes: 2 additions & 2 deletions src/reliqua/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import falcon
from falcon_cors import CORS

from .auth import Auth
from .auth import AuthMiddleware
from .docs import Docs
from .media_handlers import JSONHandler, TextHandler, YAMLHandler
from .openapi import OpenApi
Expand Down Expand Up @@ -69,7 +69,7 @@ def __init__(
self.title = title
self.version = version
self.resources = []
self.auth = [x for x in middleware if isinstance(x, Auth)]
self.auth = [x for x in middleware if isinstance(x, AuthMiddleware)]
self.config = config or {}
self.license = license
self.license_url = license_url
Expand Down
Loading

0 comments on commit aab1897

Please sign in to comment.