@@ -0,0 +1,103 @@
1+{-# LANGUAGE TypeOperators #-}
2+{-# LANGUAGE DataKinds #-}
3+{-# LANGUAGE OverloadedStrings #-}
4+module Main where
5+
6+import Data.Semigroup
7+import Data.Text (Text)
8+import Servant hiding (NotSecure)
9+import Servant.Server
10+import Network.Wai.Handler.Warp (defaultSettings, runSettings,
11+ setLogger, setPort)
12+
13+import qualified Data.Text as T
14+
15+type MainAPI =
16+ "static" :> "1" :> Get '[JSON] Text
17+ :<|> "static" :> "2" :> Get '[JSON] Text
18+ :<|> "static" :> "3" :> Get '[JSON] Text
19+ :<|> "static" :> "4" :> Get '[JSON] Text
20+ :<|> "static" :> "5" :> Get '[JSON] Text
21+ :<|> "static" :> "6" :> Get '[JSON] Text
22+ :<|> "static" :> "7" :> Get '[JSON] Text
23+ :<|> "static" :> "8" :> Get '[JSON] Text
24+ :<|> "static" :> "9" :> Get '[JSON] Text
25+ :<|> "static" :> "10" :> Get '[JSON] Text
26+ :<|> "static" :> "11" :> Get '[JSON] Text
27+ :<|> "static" :> "12" :> Get '[JSON] Text
28+ :<|> "static" :> "13" :> Get '[JSON] Text
29+ :<|> "static" :> "14" :> Get '[JSON] Text
30+ :<|> "static" :> "15" :> Get '[JSON] Text
31+ :<|> "static" :> "16" :> Get '[JSON] Text
32+ :<|> "static" :> "17" :> Get '[JSON] Text
33+ :<|> "static" :> "18" :> Get '[JSON] Text
34+ :<|> "static" :> "19" :> Get '[JSON] Text
35+ :<|> "static" :> "20" :> Get '[JSON] Text
36+ :<|> "static" :> "21" :> Get '[JSON] Text
37+ :<|> "static" :> "22" :> Get '[JSON] Text
38+ :<|> "static" :> "23" :> Get '[JSON] Text
39+ :<|> "static" :> "24" :> Get '[JSON] Text
40+ :<|> "static" :> "25" :> Get '[JSON] Text
41+ :<|> "static" :> "26" :> Get '[JSON] Text
42+ :<|> "static" :> "27" :> Get '[JSON] Text
43+ :<|> "static" :> "28" :> Get '[JSON] Text
44+ :<|> "static" :> "29" :> Get '[JSON] Text
45+ :<|> "static" :> "30" :> Get '[JSON] Text
46+ :<|> "static" :> "31" :> Get '[JSON] Text
47+ :<|> "static" :> "32" :> Get '[JSON] Text
48+ :<|> "static" :> "33" :> Get '[JSON] Text
49+ :<|> "static" :> "34" :> Get '[JSON] Text
50+ :<|> "static" :> "35" :> Get '[JSON] Text
51+ :<|> "static" :> "36" :> Get '[JSON] Text
52+ :<|> "static" :> "37" :> Get '[JSON] Text
53+ :<|> "static" :> "38" :> Get '[JSON] Text
54+ :<|> "static" :> "39" :> Get '[JSON] Text
55+ :<|> "static" :> "40" :> Get '[JSON] Text
56+ :<|> "static" :> "41" :> Get '[JSON] Text
57+ :<|> "static" :> "42" :> Get '[JSON] Text
58+ :<|> "static" :> "43" :> Get '[JSON] Text
59+ :<|> "static" :> "44" :> Get '[JSON] Text
60+ :<|> "static" :> "45" :> Get '[JSON] Text
61+ :<|> "static" :> "46" :> Get '[JSON] Text
62+ :<|> "static" :> "47" :> Get '[JSON] Text
63+ :<|> "static" :> "48" :> Get '[JSON] Text
64+ :<|> "static" :> "49" :> Get '[JSON] Text
65+ :<|> "static" :> "50" :> Get '[JSON] Text
66+ :<|> "static" :> "51" :> Get '[JSON] Text
67+ :<|> "static" :> "52" :> Get '[JSON] Text
68+ :<|> "static" :> "53" :> Get '[JSON] Text
69+ :<|> "static" :> "54" :> Get '[JSON] Text
70+ :<|> "static" :> "55" :> Get '[JSON] Text
71+ :<|> "static" :> "56" :> Get '[JSON] Text
72+ :<|> "static" :> "57" :> Get '[JSON] Text
73+ :<|> "static" :> "58" :> Get '[JSON] Text
74+ :<|> "static" :> "59" :> Get '[JSON] Text
75+ :<|> "static" :> "60" :> Get '[JSON] Text
76+ :<|> "static" :> "61" :> Get '[JSON] Text
77+ :<|> "static" :> "62" :> Get '[JSON] Text
78+ :<|> "static" :> "63" :> Get '[JSON] Text
79+ :<|> "static" :> "64" :> Get '[JSON] Text
80+
81+mainServer :: Server MainAPI
82+mainServer = foo :<|> foo :<|> foo :<|> foo
83+ :<|> foo :<|> foo :<|> foo :<|> foo
84+ :<|> foo :<|> foo :<|> foo :<|> foo
85+ :<|> foo :<|> foo :<|> foo :<|> foo
86+ :<|> foo :<|> foo :<|> foo :<|> foo
87+ :<|> foo :<|> foo :<|> foo :<|> foo
88+ :<|> foo :<|> foo :<|> foo :<|> foo
89+ :<|> foo :<|> foo :<|> foo :<|> foo
90+ :<|> foo :<|> foo :<|> foo :<|> foo
91+ :<|> foo :<|> foo :<|> foo :<|> foo
92+ :<|> foo :<|> foo :<|> foo :<|> foo
93+ :<|> foo :<|> foo :<|> foo :<|> foo
94+ :<|> foo :<|> foo :<|> foo :<|> foo
95+ :<|> foo :<|> foo :<|> foo :<|> foo
96+ :<|> foo :<|> foo :<|> foo :<|> foo
97+ :<|> foo :<|> foo :<|> foo :<|> foo
98+
99+foo = return "foo"
100+
101+main :: IO ()
102+main = runSettings defaultSettings $
103+ serveWithContext (Proxy :: Proxy MainAPI) EmptyContext mainServer