fix: Taxonomy view was broken.

pull/6/head
Raphaël Vinot 2018-05-24 07:35:11 +02:00
parent 8b9c09b241
commit 6f085c0bf6
1 changed files with 4 additions and 2 deletions

View File

@ -18,10 +18,11 @@ nav = Nav()
def mynavbar():
return Navbar(
'MISP taxonomies viewer and editor',
View('Taxonomies', 'taxonomies'),
View('Search', 'search'),
View('Taxonomies', 'taxonomies', name=None),
View('Search', 'search')
)
app = Flask(__name__)
app.secret_key = '<changeme>'
Bootstrap(app)
@ -51,6 +52,7 @@ def taxonomies(name=None):
else:
return render_template('taxonomies.html', all_taxonomies=t)
@app.route('/search', methods=['GET', 'POST'])
def search():
form = SearchForm()