Add push endpoints

This commit is contained in:
Mikołaj Pich 2019-06-17 12:56:25 +02:00
parent f310fdfd10
commit 4a68fe9e87
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
3 changed files with 13 additions and 0 deletions

View file

@ -33,6 +33,7 @@ router.all("/", (req, res) => {
router.use("/Default/mobile-api/Uczen.v3.UczenStart", require("./register"));
router.use("/Default/123456/mobile-api/Uczen.v3.Uczen", require("./student"));
router.use("/Default/123456/mobile-api/Uczen.v3.Uczen", require("./messages"));
router.use("/Default/123456/mobile-api/Push.v1.Push", require("./push"));
router.all("/*", (req, res) => {
res.json({

8
src/routes/api/push.js Normal file
View file

@ -0,0 +1,8 @@
const router = require('express').Router({});
const api = require("../../utils/api");
router.all("/GetCertificatePushConfig", (req, res) => {
res.json(api.createResponse("not implemented")); //TODO
});
module.exports = router;

View file

@ -7,6 +7,10 @@ router.all("/LogAppStart", (req, res) => {
res.json(api.createResponse("Log"));
});
router.all("/UstawPushToken", (req, res) => {
res.json(api.createResponse("Zapisano tokenId dla powiadomien PUSH"));
});
router.all("/Slowniki", (req, res) => {
res.json(api.createResponse({
"TimeKey": Math.round(new Date().getTime() / 1000),