Closed Pacane closed 9 years ago
No, you don't. But you need to annotate your classes with @Group
Example:
@app.Group("/")
class Games {
@app.Route("/")
helloWorld() => "Hello, World!";
}
Or:
@app.Group("/")
class Games {
@app.DefaultRoute()
helloWorld() => "Hello, World!";
}
Thanks, got it working! Also, nice job on this framework, it looks very good, and the documentation is pretty nice. Keep up the good work.
I'm trying to do this:
and the server starts fine, but doesn't register the
GET
handler on/
. I tried adding thisjust before the call to
start()
but it won't help.Do I really have to keep the annotations in main.dart ?