mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-04 04:04:17 +08:00
* New Docs CSS update and Dockerfile to include docs folder flash of unrendered text fix markdown docs ignore docs/docs.go improving the docs generation github actions for docs generation go runner version fix updated docs.yml update repo action updated updated actions and dns docs dns complete More docs update Complete docs and updated workflow Update documentation Tue Aug 6 11:17:42 UTC 2024 Update documentation Thu Aug 8 12:26:57 UTC 2024 clean up clean up Dockerfile clean up Updated workflow Updated workflow Update docs.yml Update docs.yml * requested changes * changed ingress gateway to remote access gateway
17 lines
465 B
Go
17 lines
465 B
Go
package controller
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
// @Summary Retrieve a file from the file server
|
|
// @Router /meshclient/files/{filename} [get]
|
|
// @Tags Meshclient
|
|
// @Success 200 {body} file "file"
|
|
// @Failure 404 {string} string "404 not found"
|
|
func fileHandlers(r *mux.Router) {
|
|
r.PathPrefix("/meshclient/files").
|
|
Handler(http.StripPrefix("/meshclient/files", http.FileServer(http.Dir("./meshclient/files"))))
|
|
}
|