Example #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)
Example #2
0
def user(viewuser=None):
    from routes import user as run
    return run.route(viewuser)
Example #3
0
def search():
    from routes import search as run
    return run.route()
Example #4
0
def submit(post_id=None):
    from routes import submit as run
    return run.route(post_id)
Example #5
0
def invite(code=None):
    from routes import invite as run
    return run.route(code)
Example #6
0
def forgot():
    from routes import forgot as run
    return run.route()
Example #7
0
def index():
    from routes import index as run
    return run.route()
Example #8
0
def login():
    from routes import login as run
    return run.route()
Example #9
0
def remove(post_id=0):
    from routes import post as run
    return run.route('delete', post_id)
Example #10
0
def change_password():
    from routes import password as run
    return run.route()
Example #11
0
def report(post_id=0):
    from routes import post as run
    return run.route('report', post_id)
Example #12
0
def upvote(post_id=0):
    from routes import post as run
    return run.route('upvote', post_id)
Example #13
0
def subscribe(viewuser=None):
    from routes import rss as run
    return run.route(viewuser)
Example #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')
Example #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')