mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 23:36:18 +08:00
876778a1cc
* remove usergroup * superadmin * superadmin creation * generate openapi spec file * statticcheck * review comments
22 lines
452 B
Go
22 lines
452 B
Go
package controller
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
func fileHandlers(r *mux.Router) {
|
|
// swagger:route GET /meshclient/files/{filename} meshclient getFile
|
|
//
|
|
// Retrieve a file from the file server.
|
|
//
|
|
// Schemes: https
|
|
//
|
|
// Security:
|
|
// oauth
|
|
// Responses:
|
|
// 200: fileResponse
|
|
r.PathPrefix("/meshclient/files").Handler(http.StripPrefix("/meshclient/files", http.FileServer(http.Dir("./meshclient/files"))))
|
|
}
|