Add invalid symbol page
This commit is contained in:
parent
da919aabf8
commit
96771266e3
2 changed files with 19 additions and 0 deletions
|
@ -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
13
src/views/no-symbol.pug
Normal 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
|
Loading…
Reference in a new issue