refactor: remove unused config settings

Simplified app initialization by removing the `Config` class and cleaning up unused configuration settings. This reduces redundancy and potential confusion in the codebase.
This commit is contained in:
Kumi 2024-09-19 14:21:18 +02:00
parent d790b0b17a
commit 87a261d7ef
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 1 additions and 6 deletions

View file

@ -2,13 +2,11 @@ from flask import Flask
from os import environ
from .const import Config
from .views import home, article, error, proxy
def create_app(config_class=Config):
def create_app():
app = Flask(__name__)
app.config.from_object(config_class)
app.register_blueprint(home.bp)
app.register_blueprint(article.bp)

View file

@ -1,3 +0,0 @@
class Config:
MEDIUM_API_URL = "https://medium.com/_/graphql"
GITHUB_API_URL = "https://api.github.com"