mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-06-12 15:10:49 +00:00
get random ja word
This commit is contained in:
@@ -3,10 +3,12 @@ from rsshub.extensions import cache
|
||||
|
||||
bp = Blueprint('main', __name__)
|
||||
|
||||
@bp.route('/word/<string:category>')
|
||||
@bp.route('/')
|
||||
def word():
|
||||
@cache.cached(timeout=3600)
|
||||
def word(category=''):
|
||||
from rsshub.spiders.word.word import ctx
|
||||
return render_template('main/word.html', **ctx())
|
||||
return render_template('main/word.html', **ctx(category))
|
||||
|
||||
@bp.route('/index')
|
||||
def index():
|
||||
|
||||
Reference in New Issue
Block a user