Many api changes
- Added basic jwt auth - Added keyword endpoints - added share/symbol endpoints - updated postman - refactoring
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
from flask import Flask
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from models import *
|
||||
from api import api
|
||||
from interface import interface
|
||||
from webservice.models import *
|
||||
from webservice.interface import interface
|
||||
from webservice.blueprints.keyword import keyword_blueprint
|
||||
from webservice.blueprints.shares import shares_blueprint
|
||||
from webservice.blueprints.user import users_blueprint
|
||||
|
||||
|
||||
def create_app():
|
||||
@@ -20,7 +22,12 @@ def create_app():
|
||||
# Create all tables
|
||||
db.create_all()
|
||||
|
||||
application.register_blueprint(api)
|
||||
# api blueprints
|
||||
application.register_blueprint(keyword_blueprint)
|
||||
application.register_blueprint(shares_blueprint)
|
||||
application.register_blueprint(users_blueprint)
|
||||
|
||||
# interface blueprint
|
||||
application.register_blueprint(interface)
|
||||
|
||||
return application
|
||||
|
||||
Reference in New Issue
Block a user