api for fetching user profile

This commit is contained in:
Nathaniel Tampus
2023-04-05 22:29:54 +08:00
parent bec764dcee
commit bdc8dab1ad
4 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import { Router } from "express";
import * as controller from "../controllers/users.controller.js";
const router = Router();
router.route("/:name").get(controller.getUserProfile);
export default router;