waldo-vision / waldo.footage.collection

Mozilla Public License 2.0
0 stars 1 forks source link

Use zod #14

Closed ceriddenn closed 2 years ago

ceriddenn commented 2 years ago

Added root/factories/fileStreamingFactoryEndpointsFactory.ts Migrated all clip endpoints to -> zod Created Zod Schemas and types for getFootage and getClips so the api can return a response of an array of objects instead of just a object. Updated router files to zod routing methods Updated index.ts to use zod server and to combine both router files into one main APIRouter that the server can use fileStreamingEndpointsFactory is the custom endpoint for clip downloading, needs to be updated for the local server file structure but it works in a local vscode dir for now.

NOTICE: This is still rough, there still needs to be some changes but the endpoints function as they should