mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +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");
|
||||
|
||||
const EventBody = z.object({
|
||||
pid: z.string().max(0),
|
||||
id: z.string().max(0),
|
||||
name: z.string(),
|
||||
date: z.string(),
|
||||
briefDescription: z.string(),
|
||||
|
||||
@@ -65,9 +65,6 @@ async function main() {
|
||||
// Error handling
|
||||
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, () => {
|
||||
logger.info(`Listening on port ${process.env.PORT}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user