Add message status change endpoint

This commit is contained in:
Mikołaj Pich 2019-06-17 13:01:00 +02:00
parent 4a68fe9e87
commit 1222d1ddf4
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA

View file

@ -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")));
});