Add push endpoints
This commit is contained in:
parent
f310fdfd10
commit
4a68fe9e87
3 changed files with 13 additions and 0 deletions
|
@ -33,6 +33,7 @@ router.all("/", (req, res) => {
|
||||||
router.use("/Default/mobile-api/Uczen.v3.UczenStart", require("./register"));
|
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("./student"));
|
||||||
router.use("/Default/123456/mobile-api/Uczen.v3.Uczen", require("./messages"));
|
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) => {
|
router.all("/*", (req, res) => {
|
||||||
res.json({
|
res.json({
|
||||||
|
|
8
src/routes/api/push.js
Normal file
8
src/routes/api/push.js
Normal 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;
|
|
@ -7,6 +7,10 @@ router.all("/LogAppStart", (req, res) => {
|
||||||
res.json(api.createResponse("Log"));
|
res.json(api.createResponse("Log"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
router.all("/UstawPushToken", (req, res) => {
|
||||||
|
res.json(api.createResponse("Zapisano tokenId dla powiadomien PUSH"));
|
||||||
|
});
|
||||||
|
|
||||||
router.all("/Slowniki", (req, res) => {
|
router.all("/Slowniki", (req, res) => {
|
||||||
res.json(api.createResponse({
|
res.json(api.createResponse({
|
||||||
"TimeKey": Math.round(new Date().getTime() / 1000),
|
"TimeKey": Math.round(new Date().getTime() / 1000),
|
||||||
|
|
Loading…
Reference in a new issue