estatesfunding/ef-api/routes/admin.js

12 lines
217 B
JavaScript
Raw Normal View History

2024-11-05 11:31:20 +00:00
import express from "express";
const router = express.Router();
2024-11-07 15:29:39 +00:00
import { adminUser, login } from "../controllers/admin.js"
2024-11-05 11:31:20 +00:00
router.post("/login", login);
2024-11-07 15:29:39 +00:00
router.get('/username', adminUser);
2024-11-05 11:31:20 +00:00
export default router;