Exemple #1
0
def tags(tag=None):
    if not tag:
        from core.database import get_tag_count
        return render_template(f'{session["view_mode"]}/tags.html',
                               tag_count=get_tag_count())
    else:
        from routes import tag as run
        return run.route(tag)
Exemple #2
0
def user(viewuser=None):
    from routes import user as run
    return run.route(viewuser)
Exemple #3
0
def search():
    from routes import search as run
    return run.route()
Exemple #4
0
def submit(post_id=None):
    from routes import submit as run
    return run.route(post_id)
Exemple #5
0
def invite(code=None):
    from routes import invite as run
    return run.route(code)
Exemple #6
0
def forgot():
    from routes import forgot as run
    return run.route()
Exemple #7
0
def index():
    from routes import index as run
    return run.route()
Exemple #8
0
def login():
    from routes import login as run
    return run.route()
Exemple #9
0
def remove(post_id=0):
    from routes import post as run
    return run.route('delete', post_id)
Exemple #10
0
def change_password():
    from routes import password as run
    return run.route()
Exemple #11
0
def report(post_id=0):
    from routes import post as run
    return run.route('report', post_id)
Exemple #12
0
def upvote(post_id=0):
    from routes import post as run
    return run.route('upvote', post_id)
Exemple #13
0
def subscribe(viewuser=None):
    from routes import rss as run
    return run.route(viewuser)
Exemple #14
0
def top():
    from routes import toprecent as run
    from core.database import get_all_top_posts
    return run.route(get_all_top_posts(), 'top')
Exemple #15
0
def recent():
    from routes import toprecent as run
    from core.database import get_all_recent_updated_posts
    return run.route(get_all_recent_updated_posts(), 'recent')