mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 21:24:16 +08:00
* ipv6 fix for mobile apps
* simplified RAC APIs
* add response to invite api
* fix get config api
* fix middleware for auth
* add separate controller for rac apis
* Revert "ipv6 fix for mobile apps"
This reverts commit dc84d90be2
.
14 lines
614 B
Go
14 lines
614 B
Go
package controllers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gorilla/mux"
|
|
"github.com/gravitl/netmaker/logic"
|
|
)
|
|
|
|
func RacHandlers(r *mux.Router) {
|
|
r.HandleFunc("/api/v1/rac/networks", logic.SecurityCheck(false, http.HandlerFunc(getUserRemoteAccessNetworks))).Methods(http.MethodGet)
|
|
r.HandleFunc("/api/v1/rac/network/{network}/access_points", logic.SecurityCheck(false, http.HandlerFunc(getUserRemoteAccessNetworkGateways))).Methods(http.MethodGet)
|
|
r.HandleFunc("/api/v1/rac/access_point/{access_point_id}/config", logic.SecurityCheck(false, http.HandlerFunc(getRemoteAccessGatewayConf))).Methods(http.MethodGet)
|
|
}
|