Skip to content

Commit

Permalink
ktl-657 feat: routing for Community Page
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpachoo committed Apr 18, 2022
1 parent 2c50605 commit 8be2590
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kotlin-website.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,14 @@ def kotlin_docs_pdf():
return send_file(path.join(root_folder, "assets", "kotlin-reference.pdf"))


@app.route('/_next/<path:path>')
def static_file(path):
return send_from_directory('out/_next/', path)


@app.route('/community/')
def community_page():
return render_template('pages/community.html')
return send_file('out/community.html')

@app.route('/user-groups/user-group-list.html')
def user_group_list():
Expand Down

0 comments on commit 8be2590

Please sign in to comment.