Updated with meshclient

This commit is contained in:
cameronts 2022-09-06 12:27:21 -07:00
parent 276c3c42a4
commit edd35f4359
2 changed files with 18 additions and 2 deletions

View file

@ -1,10 +1,19 @@
package controller
import (
"github.com/gorilla/mux"
"net/http"
"github.com/gorilla/mux"
)
func fileHandlers(r *mux.Router) {
// swagger:route GET /meshclient/files/{filename} meshclient fileServer
//
// Retrieve a file from the file server
//
// Schemes: https
//
// Security:
// oauth
r.PathPrefix("/meshclient/files").Handler(http.StripPrefix("/meshclient/files", http.FileServer(http.Dir("./meshclient/files"))))
}

View file

@ -1,7 +1,6 @@
basePath: /
consumes:
- application/json
host: netmaker.io
info:
description: |-
API Usage
@ -455,6 +454,14 @@ paths:
- https
tags:
- nodes
/meshclient/files/{filename}:
get:
description: Retrieve a file from the file server
operationId: fileServer
schemes:
- https
tags:
- meshclient
produces:
- application/json
schemes: