Commit 1352b3a1 authored by Trishna Saeharaseelan's avatar Trishna Saeharaseelan
Browse files

refactor: sort into mvc structure

parent 73f478a0
__version__ = "1.0.0"
__all__ = [
"api",
"controllers",
"models",
"wrappers",
# "workers",
"fixtures",
"tests",
"run",
]
import os
__all__ = [
os.path.splitext(os.path.basename(x))[0]
for x in os.listdir(os.path.dirname(__file__))
if x.endswith(".py") and x != "__init__.py"
]
\ No newline at end of file
File moved
File moved
...@@ -2,7 +2,7 @@ import json ...@@ -2,7 +2,7 @@ import json
from flask_restful import request, abort from flask_restful import request, abort
from marshmallow import Schema, fields from marshmallow import Schema, fields
import pika import pika
from endpoints.auth_resource import AuthResource from api.auth_resource import AuthResource
class NotifySchema(Schema): class NotifySchema(Schema):
......
...@@ -3,7 +3,7 @@ from marshmallow import Schema, fields ...@@ -3,7 +3,7 @@ from marshmallow import Schema, fields
import pika import pika
import json import json
from models.token import TokenModel from models.token import TokenModel
from endpoints.auth_resource import AuthResource from api.auth_resource import AuthResource
class ReceiveQuerySchema(Schema): class ReceiveQuerySchema(Schema):
......
...@@ -2,7 +2,7 @@ import json ...@@ -2,7 +2,7 @@ import json
from flask_restful import request, abort from flask_restful import request, abort
from marshmallow import Schema, fields from marshmallow import Schema, fields
import pika import pika
from endpoints.auth_resource import AuthResource from api.auth_resource import AuthResource
class SendSchema(Schema): class SendSchema(Schema):
body = fields.Str(required=True) body = fields.Str(required=True)
......
import json import json
import pika
from flask_restful import Resource, request, abort from flask_restful import Resource, request, abort
from marshmallow import Schema, fields from marshmallow import Schema, fields
import pika
from models.token import TokenModel from models.token import TokenModel
......
File moved
import os
__all__ = [
os.path.splitext(os.path.basename(x))[0]
for x in os.listdir(os.path.dirname(__file__))
if x.endswith(".py") and x != "__init__.py"
]
File moved
File moved
File moved
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
# soar-broadcast - admin messages forwarded to all client-inboxes regardless of subscriptions # soar-broadcast - admin messages forwarded to all client-inboxes regardless of subscriptions
import concurrent.futures import concurrent.futures
from endpoints.clients import ClientsFile from api.clients import ClientsFile
from soar_broadcast import broadcast from controllers.core_broadcast import broadcast
from soar_forward import forward from controllers.core_forward import forward
from soar_publish import publish from controllers.core_publish import publish
from soar_subscribe import subscribe from controllers.core_subscribe import subscribe
THREADS = [] THREADS = []
EXCHANGES = { EXCHANGES = {
......
File moved
from flask_restful import Resource
class HelloWorld(Resource):
def get(self):
return {"hello": "world"}
import os
__all__ = [
os.path.splitext(os.path.basename(x))[0]
for x in os.listdir(os.path.dirname(__file__))
if x.endswith(".py") and x != "__init__.py"
]
import os
__all__ = [
os.path.splitext(os.path.basename(x))[0]
for x in os.listdir(os.path.dirname(__file__))
if x.endswith(".py") and x != "__init__.py"
]
Flask == 2.2.2
Flask-RESTful == 0.3.9
marshmallow == 3.19.0
cryptography == 39.0.0
bson == 0.5.10
pubsubpy == 2.3.0
pika == 1.3.1
pyrabbit == 1.1.0
Flask-Cors == 3.0.10
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment