bep40 commited on
Commit
7eab1ea
·
verified ·
1 Parent(s): f652956

Serve index_v4.html

Browse files
Files changed (1) hide show
  1. app_v2_entry.py +2 -2
app_v2_entry.py CHANGED
@@ -423,9 +423,9 @@ def _get_hot_topics():
423
  @app.get('/api/hot_topics')
424
  def api_hot_topics():return JSONResponse({'topics':_get_hot_topics()})
425
  @app.get('/')
426
- # Serve v3
427
  async def serve_index():
428
- p=os.path.join(STATIC_DIR,'index_v3.html')
429
  if os.path.exists(p):return FileResponse(p,media_type='text/html')
430
  return HTMLResponse('<h1>VNEWS</h1>')
431
  @app.get('/api/hashtag/sources')
 
423
  @app.get('/api/hot_topics')
424
  def api_hot_topics():return JSONResponse({'topics':_get_hot_topics()})
425
  @app.get('/')
426
+ # Serve v4
427
  async def serve_index():
428
+ p=os.path.join(STATIC_DIR,'index_v4.html')
429
  if os.path.exists(p):return FileResponse(p,media_type='text/html')
430
  return HTMLResponse('<h1>VNEWS</h1>')
431
  @app.get('/api/hashtag/sources')