Many api changes

- Added basic jwt auth
- Added keyword endpoints
- added share/symbol endpoints
- updated postman
- refactoring
This commit is contained in:
2022-03-14 17:10:00 +01:00
parent 412ec06144
commit 6923095939
8 changed files with 457 additions and 115 deletions

View File

@@ -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