Hi!
I'm trying to setup a simple xitrum project using gradle as a build tool. I have the following two classes:
package server
import xitrum.handler.Server
import xitrum.routing.Routes
object Boot {
def main(args: Array[String]) {
Server.start()
}
}
and:
package server.controllers
import xitrum.Controller
class TestController extends Controller {
pathPrefix = "test"
def index = GET {
respondText("hello")
}
}
Here's what I got on server startup:
12:40:26,902 INFO Routes$:169 - Load routes.cache/collect routes and action/page cache config from controllers...
12:40:27,585 INFO Routes$:60 - Routes:
GET /xitrum/routes.js xitrum.routing.JSRoutesController#serve
12:40:27,844 INFO Server$:45 - HTTP server started on port 8000
12:40:27,856 INFO Server$:45 - HTTPS server started on port 4430
So there's no route GET /test
What is wrong with this setup?