GIF89a php
Current File : /home/viralhoga/app_viralhoga/src/modules/writerMusicBooking/writerMusicBooking.router.js
import express from "express";
import { createBooking, getArtistBookings, getBookings } from "./writerMusicBooking.controller.js";

const writerMusicBooking = express.Router();

writerMusicBooking.route("/")
    .get(getBookings);

writerMusicBooking.route("/:artistId")
    .get(getArtistBookings)
    .post(createBooking);

export default writerMusicBooking;