mirror of
https://github.com/detleph/server.git
synced 2026-09-07 07:56:18 +02:00
Event zod add pid/id; rm comented MediaRouter
This commit is contained in:
@@ -9,6 +9,8 @@ import { createInsufficientPermissionsError, DataType, generateError, generateIn
|
|||||||
require("express-async-errors");
|
require("express-async-errors");
|
||||||
|
|
||||||
const EventBody = z.object({
|
const EventBody = z.object({
|
||||||
|
pid: z.string().max(0),
|
||||||
|
id: z.string().max(0),
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
date: z.string(),
|
date: z.string(),
|
||||||
briefDescription: z.string(),
|
briefDescription: z.string(),
|
||||||
|
|||||||
@@ -65,9 +65,6 @@ async function main() {
|
|||||||
// Error handling
|
// Error handling
|
||||||
app.use(defaultErrorHandler); // This has to be the LAST ROUTE
|
app.use(defaultErrorHandler); // This has to be the LAST ROUTE
|
||||||
|
|
||||||
// Disable the media router for now
|
|
||||||
// app.use("/api/media", mediaRouter);
|
|
||||||
|
|
||||||
app.listen(process.env.PORT, () => {
|
app.listen(process.env.PORT, () => {
|
||||||
logger.info(`Listening on port ${process.env.PORT}`);
|
logger.info(`Listening on port ${process.env.PORT}`);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user