mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-09 14:46:36 +08:00
Updated with meshclient
This commit is contained in:
parent
276c3c42a4
commit
edd35f4359
2 changed files with 18 additions and 2 deletions
|
@ -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"))))
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue