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:
parent
d790b0b17a
commit
87a261d7ef
2 changed files with 1 additions and 6 deletions
|
@ -2,13 +2,11 @@ from flask import Flask
|
||||||
|
|
||||||
from os import environ
|
from os import environ
|
||||||
|
|
||||||
from .const import Config
|
|
||||||
from .views import home, article, error, proxy
|
from .views import home, article, error, proxy
|
||||||
|
|
||||||
|
|
||||||
def create_app(config_class=Config):
|
def create_app():
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config.from_object(config_class)
|
|
||||||
|
|
||||||
app.register_blueprint(home.bp)
|
app.register_blueprint(home.bp)
|
||||||
app.register_blueprint(article.bp)
|
app.register_blueprint(article.bp)
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
class Config:
|
|
||||||
MEDIUM_API_URL = "https://medium.com/_/graphql"
|
|
||||||
GITHUB_API_URL = "https://api.github.com"
|
|
Loading…
Reference in a new issue