12345678910111213141516171819 |
- package routes
- import (
- "byom-infra-api/middleware"
- "github.com/gorilla/mux"
- )
- // SetupRoutes configures all the routes for the application
- func SetupRoutes(r *mux.Router) {
- // Add logging middleware
- r.Use(middleware.LoggingMiddleware)
- // SSH Key routes
- r.HandleFunc("/sshkey", GetSSHKeys).Methods("GET")
- r.HandleFunc("/sshkey/{id}", GetSSHKeyByID).Methods("GET")
- // Add other routes here as needed
- }
|