Skip to content

Commit

Permalink
fix: Taxonomy view was broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed May 24, 2018
1 parent 8b9c09b commit 6f085c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions website/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 6f085c0

Please sign in to comment.