netmaker/controllers/files.go
Matthew R Kasun 876778a1cc
open api spec file (#2595)
* remove usergroup

* superadmin

* superadmin creation

* generate openapi spec file

* statticcheck

* review comments
2023-10-04 10:26:38 +04:00

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"))))
}