mirror of https://github.com/CIRCL/lookyloo
fix: Make sure id_up in the API stil works
parent
172c54bae6
commit
e3e761d42a
|
@ -81,10 +81,16 @@ user_agents = UserAgents()
|
||||||
if get_config('generic', 'index_is_capture'):
|
if get_config('generic', 'index_is_capture'):
|
||||||
@app.route('/', methods=['GET'])
|
@app.route('/', methods=['GET'])
|
||||||
def landing_page() -> WerkzeugResponse:
|
def landing_page() -> WerkzeugResponse:
|
||||||
|
if request.method == 'HEAD':
|
||||||
|
# Just returns ack if the webserver is running
|
||||||
|
return 'Ack'
|
||||||
return redirect(url_for('capture_web'))
|
return redirect(url_for('capture_web'))
|
||||||
else:
|
else:
|
||||||
@app.route('/', methods=['GET'])
|
@app.route('/', methods=['GET'])
|
||||||
def landing_page() -> WerkzeugResponse:
|
def landing_page() -> WerkzeugResponse:
|
||||||
|
if request.method == 'HEAD':
|
||||||
|
# Just returns ack if the webserver is running
|
||||||
|
return 'Ack'
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
|
|
||||||
|
|
||||||
|
@ -1328,9 +1334,6 @@ def get_index_params(request: Request) -> tuple[bool, str]:
|
||||||
|
|
||||||
@app.route('/index', methods=['GET'])
|
@app.route('/index', methods=['GET'])
|
||||||
def index() -> str:
|
def index() -> str:
|
||||||
if request.method == 'HEAD':
|
|
||||||
# Just returns ack if the webserver is running
|
|
||||||
return 'Ack'
|
|
||||||
show_error, category = get_index_params(request)
|
show_error, category = get_index_params(request)
|
||||||
return index_generic(show_error=show_error)
|
return index_generic(show_error=show_error)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue