routes.go 414 B

12345678910111213141516171819
  1. package routes
  2. import (
  3. "byom-infra-api/middleware"
  4. "github.com/gorilla/mux"
  5. )
  6. // SetupRoutes configures all the routes for the application
  7. func SetupRoutes(r *mux.Router) {
  8. // Add logging middleware
  9. r.Use(middleware.LoggingMiddleware)
  10. // SSH Key routes
  11. r.HandleFunc("/sshkey", GetSSHKeys).Methods("GET")
  12. r.HandleFunc("/sshkey/{id}", GetSSHKeyByID).Methods("GET")
  13. // Add other routes here as needed
  14. }