mirror of
https://github.com/sotam0316/drawNET.git
synced 2026-04-24 19:48:36 +09:00
21 lines
526 B
Python
21 lines
526 B
Python
import os
|
|
from flask import Blueprint, render_template, send_from_directory
|
|
|
|
main_bp = Blueprint('main', __name__)
|
|
|
|
@main_bp.route('/')
|
|
def index():
|
|
return render_template('index.html')
|
|
|
|
@main_bp.route('/studio')
|
|
def studio():
|
|
return render_template('studio.html')
|
|
|
|
@main_bp.route('/admin/license')
|
|
def admin_license():
|
|
return render_template('admin_license.html')
|
|
|
|
@main_bp.route('/manual/<path:filename>')
|
|
def serve_manual(filename):
|
|
return send_from_directory(os.path.join(os.getcwd(), 'manual'), filename)
|