Эх сурвалжийг харах

some architecture changes

Evgeny Polivanov 2 жил өмнө
parent
commit
0c26c0a5ca
5 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 1 1
      bin/api.py
  2. 0 0
      bin/api_config.py
  3. 0 0
      bin/requirements.txt
  4. 1 1
      install.bat
  5. 1 1
      run_api.bat

+ 1 - 1
api.py → bin/api.py

@@ -4,7 +4,7 @@ from xmpp import cli
 from flask_jwt_extended import JWTManager, jwt_required, get_jwt_identity, create_access_token
 from datetime import timedelta
 
-from api_config import Config
+from bin.api_config import Config
 from BackendApi.SharixQuery import SharixQuery
 #from OpenSSL import SSL
 

+ 0 - 0
api_config.py → bin/api_config.py


+ 0 - 0
requirements.txt → bin/requirements.txt


+ 1 - 1
install.bat

@@ -1,3 +1,3 @@
 @echo off
-git clone -b master http://git.sharix-app.org/ShariX_Open/BackendApi.git && python -m venv rest_venv && %~dp0\rest_venv\Scripts\activate.bat && pip install -r requirements.txt
+git clone -b master http://git.sharix-app.org/ShariX_Open/BackendApi.git && python -m venv rest_venv && %~dp0\rest_venv\Scripts\activate.bat && pip install -r bin\requirements.txt
 pause

+ 1 - 1
run_api.bat

@@ -1,3 +1,3 @@
 @echo off
-%~dp0\rest_venv\Scripts\activate.bat && python %~dp0\api.py
+%~dp0\rest_venv\Scripts\activate.bat && python %~dp0\bin\api.py
 pause