57 lines
980 B
Python
57 lines
980 B
Python
|
|
"""Oeffentliche Routen (kein Login noetig).
|
||
|
|
|
||
|
|
Etappe 1: nur Startseite + Error-Handler portiert.
|
||
|
|
Etappe 3: Lektionen, Software, Projekt-Katalog, Troubleshooting.
|
||
|
|
Etappe 5: Drucker-Live-View.
|
||
|
|
"""
|
||
|
|
from flask import Blueprint, render_template, abort
|
||
|
|
|
||
|
|
bp = Blueprint("oeffentlich", __name__)
|
||
|
|
|
||
|
|
|
||
|
|
@bp.route("/")
|
||
|
|
def index():
|
||
|
|
return render_template("index.html")
|
||
|
|
|
||
|
|
|
||
|
|
# Stubs fuer spaetere Etappen — geben 501 zurueck, damit Navigation nicht bricht.
|
||
|
|
|
||
|
|
@bp.route("/lektionen")
|
||
|
|
def lektionen():
|
||
|
|
abort(501)
|
||
|
|
|
||
|
|
|
||
|
|
@bp.route("/lektion/<int:nummer>")
|
||
|
|
def lektion_detail(nummer):
|
||
|
|
abort(501)
|
||
|
|
|
||
|
|
|
||
|
|
@bp.route("/software")
|
||
|
|
def software():
|
||
|
|
abort(501)
|
||
|
|
|
||
|
|
|
||
|
|
@bp.route("/software/<slug>")
|
||
|
|
def software_detail(slug):
|
||
|
|
abort(501)
|
||
|
|
|
||
|
|
|
||
|
|
@bp.route("/projekte")
|
||
|
|
def projekte():
|
||
|
|
abort(501)
|
||
|
|
|
||
|
|
|
||
|
|
@bp.route("/projekte/<int:projekt_id>")
|
||
|
|
def projekt_detail(projekt_id):
|
||
|
|
abort(501)
|
||
|
|
|
||
|
|
|
||
|
|
@bp.route("/troubleshooting")
|
||
|
|
def troubleshooting():
|
||
|
|
abort(501)
|
||
|
|
|
||
|
|
|
||
|
|
@bp.route("/drucker")
|
||
|
|
def drucker():
|
||
|
|
abort(501)
|