import json

from flask import Blueprint, Response

from util import load_list

subreddits_page = Blueprint('subreddits', __name__, template_folder='templates')


@subreddits_page.route("/subreddits")
def get_subs():
    return Response(json.dumps({'subreddits': load_list('subs.txt')}),
                    mimetype="application/json")

d235b8bea7c3860076c75f35b395925e43c63824
<mask token>

<mask token>


@subreddits_page.route('/subreddits')
def get_subs():
    return Response(json.dumps({'subreddits': load_list('subs.txt')}),
        mimetype='application/json')

<mask token>
subreddits_page = Blueprint('subreddits', __name__, template_folder='templates'
    )


@subreddits_page.route('/subreddits')
def get_subs():
    return Response(json.dumps({'subreddits': load_list('subs.txt')}),
        mimetype='application/json')

import json
from flask import Blueprint, Response
from util import load_list
subreddits_page = Blueprint('subreddits', __name__, template_folder='templates'
    )


@subreddits_page.route('/subreddits')
def get_subs():
    return Response(json.dumps({'subreddits': load_list('subs.txt')}),
        mimetype='application/json')

import json

from flask import Blueprint, Response

from util import load_list

subreddits_page = Blueprint('subreddits', __name__, template_folder='templates')


@subreddits_page.route("/subreddits")
def get_subs():
    return Response(json.dumps({'subreddits': load_list('subs.txt')}),
                    mimetype="application/json")
