Move business logic out of App Router into module packages, add boundary validation scripts, and keep all routes as thin re-exports without changing URLs or API behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
35 lines
864 B
TypeScript
35 lines
864 B
TypeScript
"use client";
|
|
|
|
import { createSportsCenterListPage } from "@/modules/sports-center/components/SportsCenterListCrudPage";
|
|
import { sportsCenterApi } from "@/modules/sports-center/services/sports-center-api";
|
|
|
|
export const StaffWorkingHoursPage = createSportsCenterListPage({
|
|
title: "ساعات کاری",
|
|
breadcrumb: "ساعات کاری",
|
|
resourceKey: "staffWorkingHours",
|
|
api: sportsCenterApi.staffWorkingHours,
|
|
feature: "coach_staff_management",
|
|
createOnly: true,
|
|
listQueryParam: "coach_id",
|
|
columns: [
|
|
{
|
|
"key": "day_of_week",
|
|
"header": "روز"
|
|
}
|
|
],
|
|
createFields: [
|
|
{
|
|
"name": "sports_center_id",
|
|
"label": "شناسه مرکز",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "coach_id",
|
|
"label": "شناسه مربی",
|
|
"required": true
|
|
}
|
|
],
|
|
});
|
|
|
|
export default StaffWorkingHoursPage;
|