* added new api route /event-types/bySlug/{slug}
* refactor: schema query slug
* refactor: event-types/bySlug to event-types/by-slug route
* feat: allow admins to fetch event types on behalf of others
* fix: auth middleware
* added slug query param to main event-type api route
* removed the /by-slug route
* refactor logic
* remove unwanted changes
* updated swagger api doc
---------
Co-authored-by: supalarry <lauris.skraucis@gmail.com>
8 lines
165 B
TypeScript
8 lines
165 B
TypeScript
import { z } from "zod";
|
|
|
|
import { baseApiParams } from "./baseApiParams";
|
|
|
|
export const schemaQuerySlug = baseApiParams.extend({
|
|
slug: z.string().optional(),
|
|
});
|