Add message status change endpoint
This commit is contained in:
parent
4a68fe9e87
commit
1222d1ddf4
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
const router = require('express').Router({});
|
||||
const api = require("../../utils/api");
|
||||
|
||||
router.all("/", (req, res) => {
|
||||
res.json(api.createResponse("Zmiana statusu wiadomości."));
|
||||
});
|
||||
|
||||
router.all("/WiadomosciOdebrane", (req, res) => {
|
||||
res.json(api.createResponse(require("../../../data/api/messages/WiadomosciOdebrane")));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue