mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-14 10:00:40 +00:00
Add playground blueprint
This commit is contained in:
5
web/app/playground/__init__.py
Normal file
5
web/app/playground/__init__.py
Normal file
@ -0,0 +1,5 @@
|
||||
from flask import Blueprint
|
||||
|
||||
|
||||
playground = Blueprint('playground', __name__)
|
||||
from . import events, views # noqa
|
0
web/app/playground/events.py
Normal file
0
web/app/playground/events.py
Normal file
10
web/app/playground/views.py
Normal file
10
web/app/playground/views.py
Normal file
@ -0,0 +1,10 @@
|
||||
from flask import render_template
|
||||
from flask_login import login_required
|
||||
from . import playground
|
||||
|
||||
|
||||
@playground.route('/')
|
||||
@login_required
|
||||
def index():
|
||||
return render_template('playground/index.html.j2',
|
||||
title='Playground')
|
Reference in New Issue
Block a user