| 145 | } |
| 146 | |
| 147 | func main() { |
| 148 | app := newApp() |
| 149 | app.Logger().SetLevel("debug") |
| 150 | |
| 151 | /* |
| 152 | // GET |
| 153 | http://localhost:8080/healthcheck |
| 154 | http://localhost:8080/games/42/clans |
| 155 | http://localhost:8080/games/42/clans/clan/93 |
| 156 | http://localhost:8080/games/42/clans/search |
| 157 | http://mysubdomain.localhost:8080/ |
| 158 | |
| 159 | // PUT |
| 160 | http://localhost:8080/postvalue |
| 161 | http://localhost:8080/games/42/players/93 |
| 162 | http://localhost:8080/games/42/clans/clan/93 |
| 163 | |
| 164 | // POST |
| 165 | http://localhost:8080/ |
| 166 | http://localhost:8080/postvalue |
| 167 | http://localhost:8080/games/42/clans |
| 168 | http://localhost:8080/games/42/players |
| 169 | http://localhost:8080/games/42/clans/93/leave |
| 170 | http://localhost:8080/games/42/clans/93/memberships/application |
| 171 | http://localhost:8080/games/42/clans/93/memberships/application/anystring |
| 172 | http://localhost:8080/games/42/clans/93/memberships/invitation |
| 173 | http://localhost:8080/games/42/clans/93/memberships/invitation/anystring |
| 174 | http://localhost:8080/games/42/clans/93/memberships/delete |
| 175 | http://localhost:8080/games/42/clans/93/memberships/promote |
| 176 | http://localhost:8080/games/42/clans/93/memberships/demote |
| 177 | |
| 178 | // FIRE NOT FOUND |
| 179 | http://localhost:8080/coudlntfound |
| 180 | */ |
| 181 | app.Listen(":8080") |
| 182 | } |