aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/api/cmd/server.py
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2018-03-13 09:56:09 +0800
committerzhihui wu <wu.zhihui1@zte.com.cn>2018-03-13 09:56:09 +0800
commit080dea3ed5dca2a72258811cf6522ed69b11ffff (patch)
tree1a2e8c197d2ca3222e04176294509bca47d13fc1 /legacy/api/cmd/server.py
parent0e105924554824f9d08df24678e83e174fef2197 (diff)
Delete part of code under qtip/legacy
These code is obsolete. Change-Id: I0fc2b12847aaa30f713cf7578a92aae912153dd6 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'legacy/api/cmd/server.py')
-rw-r--r--legacy/api/cmd/server.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/legacy/api/cmd/server.py b/legacy/api/cmd/server.py
deleted file mode 100644
index eea45ad3..00000000
--- a/legacy/api/cmd/server.py
+++ /dev/null
@@ -1,31 +0,0 @@
-##############################################################################
-# Copyright (c) 2016 ZTE Corp and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-from flask import Flask
-from flask_restful import Api
-from flask_restful_swagger import swagger
-
-import legacy.api.router.mapper as mapper
-
-app = Flask(__name__)
-api = swagger.docs(Api(app), apiVersion='0.1', description='QTIP API specs')
-
-
-def add_routers():
- for (handler, url) in mapper.mappers:
- api.add_resource(handler, url)
-
-
-def main():
- add_routers()
- app.run(host='0.0.0.0')
-
-
-if __name__ == "__main__":
- main()