X-Git-Url: http://nitlanguage.org diff --git a/src/web/api_feedback.nit b/src/web/api_feedback.nit index 5db1d04..221a25e 100644 --- a/src/web/api_feedback.nit +++ b/src/web/api_feedback.nit @@ -23,12 +23,10 @@ redef class NitwebConfig var stars: MongoCollection is lazy do return db.collection("stars") end -# Group all api handlers in one router -class APIFeedbackRouter - super APIRouter - - init do - use("/stars/:id", new APIStars(config)) +redef class APIRouter + redef init do + super + use("/feedback/stars/:id", new APIStars(config)) end end