mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 04:39:20 +00:00
migrated import contacts controller to typescript
This commit is contained in:
@@ -2,11 +2,15 @@ import express from "express";
|
||||
import isAuth from "../middleware/isAuth";
|
||||
|
||||
import * as ContactController from "../controllers/ContactController";
|
||||
// import ImportPhoneContactsController from "../controllers/ImportPhoneContactsController";
|
||||
import * as ImportPhoneContactsController from "../controllers/ImportPhoneContactsController";
|
||||
|
||||
const contactRoutes = express.Router();
|
||||
|
||||
// contactRoutes.post("/contacts/import", isAuth, ImportPhoneContactsController.store);
|
||||
contactRoutes.post(
|
||||
"/contacts/import",
|
||||
isAuth,
|
||||
ImportPhoneContactsController.store
|
||||
);
|
||||
|
||||
contactRoutes.get("/contacts", isAuth, ContactController.index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user