Ejemplo n.º 1
0
def get_posts():
    offset = request.args.get("offset", 0, int)
    limit = request.args.get("limit", 10, int)

    posts = PostService.get_posts()

    return jsonify_with_data(APIError.OK, posts=posts)
Ejemplo n.º 2
0
def get_posts():
    offset = request.args.get('offset', 0, int)
    limit = request.args.get('limit', 10, int)

    posts = PostService.get_posts()

    return jsonify_with_data(APIError.OK, posts=posts)
Ejemplo n.º 3
0
def show_posts():
    posts = PostService.get_posts()

    return render_template('admin/show_posts.html', posts=posts)
Ejemplo n.º 4
0
def show_posts():
    posts = PostService.get_posts()

    return render_template('admin/show_posts.html', posts=posts)
Ejemplo n.º 5
0
def index():
    posts = PostService.get_posts()

    return render_template('web/index.html', posts=posts)
Ejemplo n.º 6
0
def index():
    posts = PostService.get_posts()

    return render_template('web/index.html', posts=posts)