from functions.batches.Barcodes import saveBarcodes, zipImages
from functions.Response import sendResponse
from flask import Blueprint, request
batchesBlueprint = Blueprint("batches", __name__)

@batchesBlueprint.post("/")
def generateBarcodes():
    return sendResponse(saveBarcodes, request, authRequired=False)

@batchesBlueprint.get("/<batchId>/zip")
def zipBatchImages(batchId):
    return sendResponse(zipImages, request, authRequired=False, id=batchId)