chore: restructure
This commit is contained in:
parent
88a7a4431a
commit
b5fb9d3408
4 changed files with 14 additions and 14 deletions
|
|
@ -13,11 +13,11 @@ import {
|
|||
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";
|
||||
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.");
|
||||
|
|
@ -14,10 +14,10 @@ import {
|
|||
Tags,
|
||||
} from "tsoa";
|
||||
|
||||
import prisma from "../../db";
|
||||
import HttpError from "../../interfaces/http-error";
|
||||
import HttpStatus from "../../interfaces/http-status";
|
||||
import { RequestWithUser } from "../../interfaces/user";
|
||||
import prisma from "../db";
|
||||
import HttpError from "../interfaces/http-error";
|
||||
import HttpStatus from "../interfaces/http-status";
|
||||
import { RequestWithUser } from "../interfaces/user";
|
||||
|
||||
type BranchCreate = {
|
||||
code?: string;
|
||||
|
|
@ -13,10 +13,10 @@ import {
|
|||
Tags,
|
||||
} from "tsoa";
|
||||
|
||||
import prisma from "../../db";
|
||||
import HttpError from "../../interfaces/http-error";
|
||||
import HttpStatus from "../../interfaces/http-status";
|
||||
import { RequestWithUser } from "../../interfaces/user";
|
||||
import prisma from "../db";
|
||||
import HttpError from "../interfaces/http-error";
|
||||
import HttpStatus from "../interfaces/http-status";
|
||||
import { RequestWithUser } from "../interfaces/user";
|
||||
|
||||
type BranchUserBody = { user: string[] };
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import { Body, Controller, Delete, Get, Path, Post, Route, Security, Tags } from "tsoa";
|
||||
import { addUserRoles, createUser, getRoles, removeUserRoles } from "../../services/keycloak";
|
||||
import { addUserRoles, createUser, getRoles, removeUserRoles } from "../services/keycloak";
|
||||
|
||||
@Route("api/keycloak")
|
||||
@Tags("Keycloak")
|
||||
Loading…
Add table
Add a link
Reference in a new issue