Skip to content

Commit a11f219

Browse files
committed
fix: removed docs route and returned back to default docs
1 parent 59b8d65 commit a11f219

File tree

3 files changed

+8
-26
lines changed

3 files changed

+8
-26
lines changed

api/main.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
from meow_inator_5000.woutews import nya_service
1616

17-
from .routers import docs
1817
from .info import InfoData
1918
from .book import Book, BookData
2019
from . import errors, __version__
@@ -57,24 +56,23 @@
5756
Rate limiting applies to the ``/random`` and ``/get`` endpoints. Check out the rate limits [over here](https://github.com/THEGOLDENPRO/aghpb_api/wiki#rate-limiting).
5857
"""
5958

60-
limiter = Limiter(key_func=get_remote_address, headers_enabled=True)
59+
limiter = Limiter(key_func=get_remote_address, headers_enabled = True)
6160
app = FastAPI(
62-
title = "AGHPB API",
63-
description = DESCRIPTION,
61+
title = "aghpb API",
62+
description = DESCRIPTION,
6463
license_info = {
65-
"name": "Apache 2.0",
66-
"identifier": "MIT",
67-
},
68-
openapi_tags = TAGS_METADATA,
64+
"name": "Apache 2.0",
65+
"identifier": "MIT",
66+
},
67+
openapi_tags = TAGS_METADATA,
68+
swagger_favicon_url = "https://raw.githubusercontent.com/THEGOLDENPRO/aghpb_api/main/assets/logo.png",
6969
version = f"v{__version__}",
7070

71-
docs_url = None,
7271
root_path = ROOT_PATH
7372
)
7473
app.state.limiter = limiter
7574
app.add_exception_handler(RateLimitExceeded, errors.rate_limit_handler)
7675
app.include_router(nya_service.router)
77-
app.include_router(docs.router)
7876

7977
@app.get(
8078
"/",

api/routers/__init__.py

Whitespace-only changes.

api/routers/docs.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)