33 lines
647 B
TypeScript
33 lines
647 B
TypeScript
|
|
import {
|
||
|
|
Body,
|
||
|
|
Controller,
|
||
|
|
Delete,
|
||
|
|
Get,
|
||
|
|
Patch,
|
||
|
|
Path,
|
||
|
|
Post,
|
||
|
|
Query,
|
||
|
|
Request,
|
||
|
|
Route,
|
||
|
|
Security,
|
||
|
|
Tags,
|
||
|
|
} from "tsoa";
|
||
|
|
|
||
|
|
import prisma from "../../db";
|
||
|
|
import minio from "../../services/minio";
|
||
|
|
import HttpError from "../../interfaces/http-error";
|
||
|
|
import HttpStatus from "../../interfaces/http-status";
|
||
|
|
import { RequestWithUser } from "../../interfaces/user";
|
||
|
|
|
||
|
|
if (!process.env.MINIO_BUCKET) {
|
||
|
|
throw Error("Require MinIO bucket.");
|
||
|
|
}
|
||
|
|
|
||
|
|
const MINIO_BUCKET = process.env.MINIO_BUCKET;
|
||
|
|
|
||
|
|
@Route("api/branch/{branchId}/contact")
|
||
|
|
@Tags("Branch Contact")
|
||
|
|
@Security("keycloak")
|
||
|
|
export class BranchContactController extends Controller {
|
||
|
|
}
|