routes

package
v0.0.0-...-b1fe86a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisterAppRoutes = func(router *mux.Router) {
	router.HandleFunc("/api/passenger", controllers.CreatePassenger).Methods("POST")
	router.HandleFunc("/api/passenger", controllers.GetAllPassengers).Methods("GET")
	router.HandleFunc("/api/passenger/{PassId}", controllers.GetPassengerById).Methods("GET")
	router.HandleFunc("/api/passenger/user/{userId}", controllers.GetPassengerByUserId).Methods("GET")
	router.HandleFunc("/api/book", controllers.CreateBooking).Methods("POST")
	router.HandleFunc("/api/book", controllers.GetAllBookings).Methods("GET")
	router.HandleFunc("/api/book/{BookId}", controllers.GetBookingById).Methods("GET")
	router.HandleFunc("/api/book/pay/{Booking_Id}", controllers.PayBooking).Methods("POST")
	router.HandleFunc("/api/flight/id/{PassId}", controllers.GetFlightById).Methods("GET")
	router.HandleFunc("/api/flight", controllers.CreateFlight).Methods("POST")
	router.HandleFunc("/api/flight/{FlightNum}", controllers.GetFlightByFlightNumber).Methods("GET")
	router.HandleFunc("/api/flight/find", controllers.FindFlightByCity).Methods("POST")
	router.HandleFunc("/api/flight", controllers.GetAllFlights).Methods("GET")
	router.HandleFunc("/api/flight/date", controllers.FindFlightByDate).Methods("POST")
	router.HandleFunc("/api/flight/{Delete_id}", controllers.DeleteFlightById).Methods("DELETE")

}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL