Reorg to put web app in its own directory

This commit is contained in:
Aldo Cortesi 2014-09-10 11:34:58 +12:00
parent e5412e9dd9
commit 76982937a6
20 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,8 @@ import flask
import requests
from netlib import odict, wsgi
import netlib.http
from . import controller, protocol, tnetstring, filt, script, version, app
from . import controller, protocol, tnetstring, filt, script, version
from .web import app
from .protocol import http, handle
from .proxy.config import parse_host_pattern
@ -727,7 +728,7 @@ class FlowMaster(controller.Master):
self.stream_large_bodies.run(f, False)
f.reply()
return f
return f
def handle_response(self, f):
self.state.add_response(f)

View File

View File

@ -1,7 +1,7 @@
from __future__ import absolute_import
import flask
import os
from .proxy import config
from ..proxy import config
mapp = flask.Flask(__name__)
mapp.debug = True

View File

Before

Width:  |  Height:  |  Size: 197 KiB

After

Width:  |  Height:  |  Size: 197 KiB