added base class for api handling

This commit is contained in:
Marvin Zhang
2019-02-12 07:00:19 +08:00
committed by Yeqing Zhang
parent 560e139719
commit 73fb8fc82f

View File

@@ -4,6 +4,7 @@ from pymongo import MongoClient
from config.db import MONGO_HOST, MONGO_PORT, MONGO_DB
from utils import is_object_id
connect(db=MONGO_DB, host=MONGO_HOST, port=MONGO_PORT)