File size: 1,270 Bytes
95914a4
 
 
 
 
 
 
 
 
 
 
efd6469
30629a5
6c19697
30629a5
6c19697
50afd7f
efd6469
 
 
 
 
 
 
 
95914a4
 
 
 
efd6469
6c19697
 
30629a5
6c19697
50afd7f
efd6469
 
 
 
 
 
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
43
44
45
46
### 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 spray_new import spray
from decision_value import decision_value
from damage import damage
from batter_scatter import batter_scatter
#from ev_angle import ev_angle
from rolling_batter import rolling_batter
from statcast_compare import statcast_compare

from rolling_pitcher import rolling_pitcher
from pitching_summary_graphic_new_fg_api import pitching_summary_graphic_new
from pitcher_scatter import pitcher_scatter



# Create app
routes = [
    Mount('/home', app=home),

    Mount('/spray',app=spray),
    Mount('/decision_value',app=decision_value),
    Mount('/damage_model',app=damage),
    Mount('/batter_scatter',app=batter_scatter),
    #Mount('/ev_angle',app=ev_angle),
    Mount('/rolling_batter',app=rolling_batter),
    Mount('/statcast_compare',app=statcast_compare),

    Mount('/rolling_pitcher',app=rolling_pitcher),
    Mount('/pitching_summary_graphic_new',app=pitching_summary_graphic_new),
    Mount('/pitcher_scatter',app=pitcher_scatter),
]

#Run App
app = Starlette(routes=routes)