mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-06-28 16:00:07 +02:00
MikroWizard Initial commit | MikroMan Welcome to the world :)
This commit is contained in:
commit
8c49b9a55d
96 changed files with 12274 additions and 0 deletions
33
py/main.py
Normal file
33
py/main.py
Normal file
|
@ -0,0 +1,33 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# main.py: server main script
|
||||
# MikroWizard.com , Mikrotik router management solution
|
||||
# Author: sepehr.ha@gmail.com thanks to Tomi.Mickelsson@iki.fi (RESTPie3)
|
||||
|
||||
# register endpoints
|
||||
from api import api_account
|
||||
from api import api_dev
|
||||
from api import api_sysconfig
|
||||
from api import api_firmware
|
||||
from api import api_user_tasks
|
||||
from api import api_logs
|
||||
from api import api_scanner
|
||||
from api import api_backups
|
||||
from api import api_snippet
|
||||
try:
|
||||
from api import api_pro_api
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import logging
|
||||
log = logging.getLogger("main")
|
||||
|
||||
log.info("Running! http://localhost:8100")
|
||||
|
||||
from libs.webutil import app
|
||||
if app.testing:
|
||||
import werkzeug.debug
|
||||
app.wsgi_app = werkzeug.debug.DebuggedApplication(app.wsgi_app, True)
|
||||
# uwsgi-daemon takes over the app...
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue