12 lines
213 B
Python
Executable file
12 lines
213 B
Python
Executable file
#!/usr/bin/python
|
|
|
|
from sys import argv
|
|
from http.server import HTTPServer
|
|
from api import api
|
|
|
|
|
|
# Create and run server
|
|
print('Starting server')
|
|
httpd = HTTPServer(('localhost', 1337), api)
|
|
httpd.serve_forever()
|