File size: 1,249 Bytes
95914a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
### Thomas Nestico
### @TJStats
#Import modules
from starlette.applications import Starlette
from starlette.routing import Mount
from starlette.staticfiles import StaticFiles
from shiny import App, ui
import shinyswatch

#Import pages
from home import home
# from about import about
# from gsax_timeline import gsax_timeline
# from on_ice_xg_rates import on_ice_xg
# from gsax_leaderboard import gsax_leaderboard
# from on_ice_xgfp import on_ice_xgfp
# from team_xg_rates import team_xg_rates
# from gsax_comparison import gsax_comparison
# from game import game
# from games import games
# from articles import articles
# from xg_model import xg_model

# Create app
routes = [
    Mount('/home', app=home),
#     Mount('/about', app=about),
#     Mount('/gsax-timeline', app=gsax_timeline),
#     Mount('/skater-xg-rates', app=on_ice_xg),
#     Mount('/gsax-leaderboard', app=gsax_leaderboard),
#     Mount('/skater-xg-percentages', app=on_ice_xgfp),
#     Mount('/team-xg-rates', app=team_xg_rates),
#     Mount('/gsax-comparison',app=gsax_comparison),
#     Mount('/games',app=games),
#     Mount('/game/{game_id}',app=game),
#     Mount('/articles',app=articles),
#     Mount('/xg-model',app=xg_model)
]

#Run App
app = Starlette(routes=routes)