mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
15 lines
402 B
TypeScript
15 lines
402 B
TypeScript
import express from "express";
|
|
import multer from "multer";
|
|
import uploadConfig from "../config/upload";
|
|
|
|
import * as ApiController from "../controllers/ApiController";
|
|
import isAuthApi from "../middleware/isAuthApi";
|
|
|
|
const upload = multer(uploadConfig);
|
|
|
|
const ApiRoutes = express.Router();
|
|
|
|
ApiRoutes.post("/send", isAuthApi, upload.array("medias"), ApiController.index);
|
|
|
|
export default ApiRoutes;
|