fix url naming
This commit is contained in:
parent
1fd018a08a
commit
72499f53b9
|
@ -13,7 +13,7 @@ dictionaryRouter.post("/update", async (req, res, next) => {
|
|||
res.send({ ok: true, result });
|
||||
});
|
||||
|
||||
dictionaryRouter.post("/entry", async (req, res, next) => {
|
||||
dictionaryRouter.post("/entries", async (req, res, next) => {
|
||||
if (!collection) {
|
||||
return res.send({ ok: false, message: "dictionary not ready" });
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ dictionaryRouter.post("/entry", async (req, res, next) => {
|
|||
return res.send(results);
|
||||
});
|
||||
|
||||
dictionaryRouter.get("/entry/:id", async (req, res, next) => {
|
||||
dictionaryRouter.get("/entries/:id", async (req, res, next) => {
|
||||
if (!collection) {
|
||||
return res.send({ ok: false, message: "dictionary not ready" });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue