From 8b16c4c27421c439c7678c5e9fc210ae9ab86c7c Mon Sep 17 00:00:00 2001
From: "Prof. Nishanth Sastry" <n.sastry@surrey.ac.uk>
Date: Thu, 16 Mar 2023 00:43:41 +0000
Subject: [PATCH] added missing __init__.py to compose branch

---
 services/__init__.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 services/__init__.py

diff --git a/services/__init__.py b/services/__init__.py
new file mode 100644
index 0000000..ed17e01
--- /dev/null
+++ b/services/__init__.py
@@ -0,0 +1,14 @@
+import os
+import json
+from flask import make_response
+
+
+def root_dir():
+    """ Returns root director for this project """
+    return os.path.dirname(os.path.realpath(__file__ + '/..'))
+
+
+def nice_json(arg):
+    response = make_response(json.dumps(arg, sort_keys = True, indent=4))
+    response.headers['Content-type'] = "application/json"
+    return response
\ No newline at end of file
-- 
GitLab