Add invalid symbol page

This commit is contained in:
Mikołaj Pich 2020-04-11 17:59:39 +02:00
parent da919aabf8
commit 96771266e3
2 changed files with 19 additions and 0 deletions

View file

@ -2,6 +2,12 @@ const express = require('express');
const router = express.Router();
const protocol = require('../utils/connection');
router.all("/:symbol", (req, res) => {
res.render('no-symbol', {
title: "Dziennik UONET+"
});
});
router.get("/powiatwulkanowy/Start.mvc/Endpoints", (req, res) => {
const base = protocol(req) + "://" + req.get('host') + "/powiatwulkanowy/Start.mvc";
res.json({

13
src/views/no-symbol.pug Normal file
View file

@ -0,0 +1,13 @@
extends layout
block extraHeader
meta(name="viewport" content="width=device-width, initial-scale=1")
block content
#MainPage_ErrorDiv
div
h2 Informacja
| Podany identyfikator klienta jest niepoprawny.
br
br
p © 2020 Wulkanowy