get management routes up
parent
637f213d4a
commit
9828b767b3
@ -1 +1,9 @@
|
||||
# web3-flipbook
|
||||
# web3-flipbook
|
||||
|
||||
| route | reason |
|
||||
| ------------------ | ------------------ |
|
||||
| / | show flipbook of all images rendered |
|
||||
| /api/v1 | routes for authenticating, establishing sessions, and fetching data |
|
||||
| /logout | clear session |
|
||||
| /manage | user dashboard to see their owned tokens and uploaded images |
|
||||
| /manage/upload | image uploading form |
|
@ -0,0 +1,15 @@
|
||||
from quart import Blueprint, render_template, request, redirect, url_for, flash
|
||||
from flask_login import login_required
|
||||
|
||||
|
||||
bp = Blueprint('manage', 'manage', url_prefix='/manage')
|
||||
|
||||
@bp.route('')
|
||||
@login_required
|
||||
async def index():
|
||||
return await render_template('manage.html')
|
||||
|
||||
@bp.route('/upload', methods=['GET', 'POST'])
|
||||
@login_required
|
||||
async def upload():
|
||||
return await render_template('upload.html')
|
@ -0,0 +1,4 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<p>manage</p>
|
||||
{% endblock %}
|
@ -0,0 +1,4 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<p>upload</p>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue