mirror of
https://github.com/sotam0316/drawNET_test.git
synced 2026-04-24 19:48:37 +09:00
17 lines
422 B
Python
17 lines
422 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('/manual/<path:filename>')
|
|
def serve_manual(filename):
|
|
return send_from_directory(os.path.join(os.getcwd(), 'manual'), filename)
|