This repository contains the server-side code for the SpotOnCars admin tracking application. It is built using Go and the Gin web framework.
- Admin Login
- Endpoint:
/auth/login
- Controller:
authController.LoginAdmin
- Endpoint:
- Log Driver Activity
- Endpoint:
/driverApp/drivers/log
- Middleware:
middleware.DriverAuthenticationGuard
- Controller:
dvrController.LogDriver
- Endpoint:
-
Get Active Bookings
- Endpoint:
/bookings/active
- Middleware:
middleware.AuthenticationGuard
- Controller:
bookingController.GetActiveBookings
- Endpoint:
-
Get Booking History
- Endpoint:
/bookings/history
- Middleware:
middleware.AuthenticationGuard
- Controller:
bookingController.GetBookingsHistory
- Endpoint:
- Get All Drivers
- Endpoint:
/drivers
- Middleware:
middleware.AuthenticationGuard
- Controller:
dvrController.GetAllDrivers
- Endpoint:
- Send Notification
- Endpoint:
/alerts
- Middleware:
middleware.AuthenticationGuard
- Controller:
alertController.SendNotification
- Endpoint: