mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-06 14:51:36 +01:00
add http api server
This commit is contained in:
@@ -5,6 +5,7 @@ import FileReader
|
||||
import argparse
|
||||
import StorrageBackend
|
||||
import NetworkListener
|
||||
import httpAPI
|
||||
|
||||
parser = argparse.ArgumentParser(description='Insurgency rating python backend server')
|
||||
parser.add_argument('files', metavar='FILE', type=str, nargs='+',\
|
||||
@@ -37,6 +38,7 @@ if __name__ == "__main__":
|
||||
print(l)
|
||||
if not args.parse_only:
|
||||
print("Starting network-listener")
|
||||
httpAPI.app.run()
|
||||
NetworkListener.listen()
|
||||
else:
|
||||
sys.exit(0)
|
||||
|
||||
Reference in New Issue
Block a user