Merge branch 'main' into restx

restx
Raphaël Vinot 2021-06-11 12:12:59 -07:00 committed by GitHub
commit 7053ca7994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 16 deletions

View File

@ -5,5 +5,6 @@
compress
delaycompress
notifempty
copytruncate
create 0640 root root
}

View File

@ -5,5 +5,6 @@
compress
delaycompress
notifempty
copytruncate
create 0640 root root
}

View File

@ -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

View File

@ -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

View File

@ -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/',