mirror of https://github.com/CIRCL/lookyloo
Merge branch 'main' into restx
commit
7053ca7994
|
@ -5,5 +5,6 @@
|
|||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
copytruncate
|
||||
create 0640 root root
|
||||
}
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
copytruncate
|
||||
create 0640 root root
|
||||
}
|
||||
|
|
14
mypy.ini
14
mypy.ini
|
@ -1,14 +0,0 @@
|
|||
[mypy]
|
||||
python_version = 3.8
|
||||
check_untyped_defs = True
|
||||
ignore_errors = False
|
||||
ignore_missing_imports = False
|
||||
strict_optional = True
|
||||
no_implicit_optional = True
|
||||
warn_unused_ignores = True
|
||||
warn_redundant_casts = True
|
||||
warn_unused_configs = True
|
||||
warn_unreachable = True
|
||||
|
||||
show_error_context = True
|
||||
pretty = True
|
|
@ -72,3 +72,18 @@ types-Flask = "^1.1.0"
|
|||
[build-system]
|
||||
requires = ["poetry_core>=1.0", "setuptools"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.mypy]
|
||||
python_version = 3.8
|
||||
check_untyped_defs = true
|
||||
ignore_errors = false
|
||||
ignore_missing_imports = false
|
||||
strict_optional = true
|
||||
no_implicit_optional = true
|
||||
warn_unused_ignores = true
|
||||
warn_redundant_casts = true
|
||||
warn_unused_configs = true
|
||||
warn_unreachable = true
|
||||
|
||||
show_error_context = true
|
||||
pretty = true
|
||||
|
|
|
@ -710,7 +710,7 @@ def rebuild_cache():
|
|||
lookyloo.rebuild_cache()
|
||||
return redirect(url_for('index'))
|
||||
|
||||
|
||||
|
||||
@app.route('/search', methods=['GET', 'POST'])
|
||||
def search():
|
||||
if request.form.get('url'):
|
||||
|
@ -963,7 +963,6 @@ def add_context(tree_uuid: str, node_uuid: str):
|
|||
|
||||
|
||||
# Query API
|
||||
|
||||
authorizations = {
|
||||
'apikey': {
|
||||
'type': 'apiKey',
|
||||
|
@ -972,6 +971,7 @@ authorizations = {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
api = Api(app, title='Lookyloo API',
|
||||
description='API to submit captures and query a lookyloo instance.',
|
||||
doc='/doc/',
|
||||
|
|
Loading…
Reference in New Issue