Skip to content
Snippets Groups Projects

Setup flask

Merged Raj Singh Gogia requested to merge subreddit-route-initializer into main
5 files
+ 71
0
Compare changes
  • Side-by-side
  • Inline
Files
5
api/subreddit.py 0 → 100644
+ 20
0
from crypt import methods
import imp
import logging
import json
import os
from urllib import response
from flask import request, jsonify,Blueprint
subreddit_routes = Blueprint('subreddit',__name__)
@subreddit_routes.route("/subreddit_posts", methods = ['GET'])
def subreddit_get():
response = jsonify(
authError=True,
data={
'data': 'This works'
}
)
return response
\ No newline at end of file
Loading