Skip to content

Commit

Permalink
refactor: corrigindo importaçoes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarbson authored and Jarbson committed Nov 27, 2023
1 parent 3f43744 commit 5b48924
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request, Response } from "express";
import { ListAllHoursRoomIdService } from "@models/Inspectorate/list_all_hous_roomId_service";
import { ListAllHoursRoomIdService } from "../../services/Inspectorate/list_all_hous_roomId_service";


export class ListAllHoursRoomsIdController{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request, Response } from "express";
import { CancelSchedulingProfessionalIdService } from "@models/Scheduling/cancel_scheduling_professional_id";
import { CancelSchedulingProfessionalIdService } from "../../services/Scheduling/cancel_scheduling_professional_id";


export class CanceLSchedulingProfessionalIdController {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ListAllSchedulingService } from "@models/Scheduling/list_all_scheduling_service";
import { ListAllSchedulingService } from "../../services/Scheduling/list_all_scheduling_service";
import { Request, Response } from "express";

export class ListAllSchedulingController {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import { Request, Response } from "express";
import { ListAllSchedulingAdminService } from "@models/Scheduling/list_all_scheduling_admin_service";
import { ListAllSchedulingAdminService } from "../../services/Scheduling/list_all_scheduling_admin_service";


export class ListAllSchedulingAdminController{
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/Scheduling/update_scheduling_controller.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request, Response } from "express";
import { UpdateSchedulingService } from "@models/Scheduling/update_scheduling_service";
import { UpdateSchedulingService } from "../../services/Scheduling/update_scheduling_service";


export class UpdateSchedulingController{
Expand Down
4 changes: 2 additions & 2 deletions src/routes/hours.routes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import { ListAllHoursRoomsIdController } from '@controllers/Inspectorate/list_all_hours_room_contoller'
import { ListHoursController } from '@controllers/Inspectorate/list_hours_controller'
import { ListAllHoursRoomsIdController } from '../controllers/Inspectorate/list_all_hours_room_contoller'
import { ListHoursController } from '../controllers/Inspectorate/list_hours_controller'
import { Router } from 'express'


Expand Down
2 changes: 1 addition & 1 deletion src/routes/inspectorate.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ShowInspectorateController } from '../controllers/Inspectorate/show_Ins
import { ShowProfessionalController } from '../controllers/Professional/show_professional_id_controller'
import { Router } from 'express'
import { CreateHourController } from '../controllers/Inspectorate/create_hour_controller'
import { ListHoursController } from '../controllers/Inspectorate/list_hours_controller'
// import { ListHoursController } from '../controllers/Inspectorate/list_hours_controller'


//import { userAuthenticate } from 'src/middlewares/userAuthenticate'
Expand Down
2 changes: 1 addition & 1 deletion src/routes/professional.routes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import { ShowProfessionalController } from '../controllers/Professional/show_professional_id_controller'
import { Router } from 'express'
import { professionalAuthenticate } from 'src/middlewares/professionalAuthenticate'
// import { professionalAuthenticate } from 'src/middlewares/professionalAuthenticate'

//import { userAuthenticate } from 'src/middlewares/userAuthenticate'

Expand Down
6 changes: 3 additions & 3 deletions src/routes/scheduling.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { CreateSchedulingController } from '../controllers/Scheduling/create_sch
import { ListAllSchedulingController } from '../controllers/Scheduling/list_all_scheduling_contoller'
import { Router } from 'express'
import { professionalAuthenticate } from '../middlewares/professionalAuthenticate'
import { ListAllSchedulingAdminController } from '@controllers/Scheduling/list_all_scheduling_contoller_admin'
import { UpdateSchedulingController } from '@controllers/Scheduling/update_scheduling_controller'
import { CanceLSchedulingProfessionalIdController } from '@controllers/Scheduling/cancel_scheduling_professional_id_controller copy'
import { ListAllSchedulingAdminController } from '../controllers/Scheduling/list_all_scheduling_contoller_admin'
import { UpdateSchedulingController } from '../controllers/Scheduling/update_scheduling_controller'
import { CanceLSchedulingProfessionalIdController } from '../controllers/Scheduling/cancel_scheduling_professional_id_controller copy'

const schedulingRouter = Router()
schedulingRouter.post("/",new CreateSchedulingController().handle)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { prisma } from "@config/prisma";
import { Scheduling } from "@prisma/client";
import AppError from "src/error/AppError";
import AppError from "../../error/AppError";

interface ListSchedulingOptions {
inspectorateId: string;
Expand Down

0 comments on commit 5b48924

Please sign in to comment.