You've already forked amazing-ytdlp-archive
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e80318fc6b |
@@ -5,8 +5,6 @@ from ..extensions import caching, caching_unless
|
|||||||
bp = Blueprint('websub', __name__, url_prefix='/websub')
|
bp = Blueprint('websub', __name__, url_prefix='/websub')
|
||||||
|
|
||||||
@bp.route('/c/<cap>', methods=['GET', 'POST'])
|
@bp.route('/c/<cap>', methods=['GET', 'POST'])
|
||||||
# Caching GET requests should be save since this endpoint is used as a capability URL
|
|
||||||
@caching.cached(unless=caching_unless)
|
|
||||||
def callback(cap):
|
def callback(cap):
|
||||||
if request.method == 'GET':
|
if request.method == 'GET':
|
||||||
topic = request.args.get('hub.topic')
|
topic = request.args.get('hub.topic')
|
||||||
|
|||||||
Reference in New Issue
Block a user