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,
|
Tags,
|
||||||
} from "tsoa";
|
} from "tsoa";
|
||||||
|
|
||||||
import prisma from "../../db";
|
import prisma from "../db";
|
||||||
import minio from "../../services/minio";
|
import minio from "../services/minio";
|
||||||
import HttpError from "../../interfaces/http-error";
|
import HttpError from "../interfaces/http-error";
|
||||||
import HttpStatus from "../../interfaces/http-status";
|
import HttpStatus from "../interfaces/http-status";
|
||||||
import { RequestWithUser } from "../../interfaces/user";
|
import { RequestWithUser } from "../interfaces/user";
|
||||||
|
|
||||||
if (!process.env.MINIO_BUCKET) {
|
if (!process.env.MINIO_BUCKET) {
|
||||||
throw Error("Require MinIO bucket.");
|
throw Error("Require MinIO bucket.");
|
||||||
|
|
@ -14,10 +14,10 @@ import {
|
||||||
Tags,
|
Tags,
|
||||||
} from "tsoa";
|
} from "tsoa";
|
||||||
|
|
||||||
import prisma from "../../db";
|
import prisma from "../db";
|
||||||
import HttpError from "../../interfaces/http-error";
|
import HttpError from "../interfaces/http-error";
|
||||||
import HttpStatus from "../../interfaces/http-status";
|
import HttpStatus from "../interfaces/http-status";
|
||||||
import { RequestWithUser } from "../../interfaces/user";
|
import { RequestWithUser } from "../interfaces/user";
|
||||||
|
|
||||||
type BranchCreate = {
|
type BranchCreate = {
|
||||||
code?: string;
|
code?: string;
|
||||||
|
|
@ -13,10 +13,10 @@ import {
|
||||||
Tags,
|
Tags,
|
||||||
} from "tsoa";
|
} from "tsoa";
|
||||||
|
|
||||||
import prisma from "../../db";
|
import prisma from "../db";
|
||||||
import HttpError from "../../interfaces/http-error";
|
import HttpError from "../interfaces/http-error";
|
||||||
import HttpStatus from "../../interfaces/http-status";
|
import HttpStatus from "../interfaces/http-status";
|
||||||
import { RequestWithUser } from "../../interfaces/user";
|
import { RequestWithUser } from "../interfaces/user";
|
||||||
|
|
||||||
type BranchUserBody = { user: string[] };
|
type BranchUserBody = { user: string[] };
|
||||||
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { Body, Controller, Delete, Get, Path, Post, Route, Security, Tags } from "tsoa";
|
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")
|
@Route("api/keycloak")
|
||||||
@Tags("Keycloak")
|
@Tags("Keycloak")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue