|
|
@ -145,7 +145,7 @@ def index(): |
|
|
|
@app.route('/create', methods=['POST']) |
|
|
|
@app.route('/create', methods=['POST']) |
|
|
|
@login_required |
|
|
|
@login_required |
|
|
|
def create(): |
|
|
|
def create(): |
|
|
|
if len(request.json) != 1 or 'content' not in reqjest.json: |
|
|
|
if len(request.json) != 1 or 'content' not in request.json: |
|
|
|
return ('invalid fields', 400, None) |
|
|
|
return ('invalid fields', 400, None) |
|
|
|
content = request.json['content'] |
|
|
|
content = request.json['content'] |
|
|
|
|
|
|
|
|
|
|
|