Move API specific code to api subdirectory
The API will be a thread within the server, not the server itself. Because of this, it doesn't make sense for the API to live at the server path. Change-Id: Icf0d5a9e511bbb11bd2f4e2ef27c4c50511151b7
This commit is contained in:
parent
0fd2009342
commit
f4919d7929
|
@ -26,14 +26,14 @@ import ovs.vlog
|
|||
vlog = ovs.vlog.Vlog(__name__)
|
||||
|
||||
from ad_sync import UserGroupDataModel
|
||||
from webservice import ApiApplication
|
||||
from webservice import CollectionHandler
|
||||
from webservice import ElementHandler
|
||||
from webservice import PolicyDataModel
|
||||
from webservice import RowCollectionHandler
|
||||
from webservice import RowElementHandler
|
||||
from webservice import SimpleDataModel
|
||||
from wsgi import Server
|
||||
from api.webservice import ApiApplication
|
||||
from api.webservice import CollectionHandler
|
||||
from api.webservice import ElementHandler
|
||||
from api.webservice import PolicyDataModel
|
||||
from api.webservice import RowCollectionHandler
|
||||
from api.webservice import RowElementHandler
|
||||
from api.webservice import SimpleDataModel
|
||||
from api.wsgi import Server
|
||||
|
||||
|
||||
DEFAULT_HTTP_ADDR = '0.0.0.0'
|
||||
|
|
|
@ -43,7 +43,7 @@ SERVERDIR=$PYSRCDIR/server
|
|||
POLICYDIR=$PYSRCDIR/policy
|
||||
THIRDPARTYDIR=$ROOTDIR/thirdparty
|
||||
|
||||
export PYTHONPATH=$SRCDIR:$THIRDPARTYDIR
|
||||
export PYTHONPATH=$PYSRCDIR:$THIRDPARTYDIR
|
||||
|
||||
# Settings that typically don't change
|
||||
INTERFACE=0.0.0.0
|
||||
|
|
Loading…
Reference in New Issue