Update main.py

This commit is contained in:
Bamboo-King
2025-01-25 12:05:33 +08:00
committed by GitHub
parent 406634396c
commit b5b588134e

View File

@@ -3,6 +3,16 @@ from rsshub.extensions import cache
bp = Blueprint('main', __name__)
@bp.route('/asmr/works/<string:search>/<string:order>/<int:subtitle>/<string:sort>')
@bp.route('/asmr/works/<string:search>/<string:order>/<int:subtitle>')
@bp.route('/asmr/works/<string:search>/<string:order>')
@bp.route('/asmr/works/<string:search>')
@bp.route('/asmr/works')
def works(search='', order='create_date', subtitle=0, sort='desc'):
from rsshub.spiders.asmr.works import ctx
return render_template('main/atom.xml', **filter_content(ctx(search, order, subtitle, sort)))
@bp.route('/word/<string:category>')
@bp.route('/')
@cache.cached(timeout=3600)