| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 #library('server'); | |
| 6 | |
| 7 #import('../../../fling/fling.dart'); | |
| 8 | |
| 9 void main() { | |
| 10 final port = 9090; | |
| 11 HttpServer server = new HttpServer(); | |
| 12 server.handle("/", ClientApp.create(".")); | |
| 13 | |
| 14 // TODO: Terrible hack to allow the html file to | |
| 15 // request ../out/Total.app.js. This will actually get | |
| 16 // requested as /out/Total.app.js so we can create a | |
| 17 // a handler for those. Yuck. | |
| 18 server.handle("/out/", ClientApp.create(".")); | |
| 19 | |
| 20 server.listen(port); | |
| 21 print("http://localhost:${port}/Total.html"); | |
| 22 Fling.goForth(); | |
| 23 } | |
| OLD | NEW |