nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitweb: split APIRouter in modules
[nit.git]
/
src
/
web
/
api_feedback.nit
diff --git
a/src/web/api_feedback.nit
b/src/web/api_feedback.nit
index
5db1d04
..
221a25e
100644
(file)
--- 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
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
end
end