files.go 415 B

12345678910111213141516171819
  1. package controller
  2. import (
  3. "net/http"
  4. "github.com/gorilla/mux"
  5. )
  6. func fileHandlers(r *mux.Router) {
  7. // swagger:route GET /meshclient/files/{filename} meshclient fileServer
  8. //
  9. // Retrieve a file from the file server
  10. //
  11. // Schemes: https
  12. //
  13. // Security:
  14. // oauth
  15. r.PathPrefix("/meshclient/files").Handler(http.StripPrefix("/meshclient/files", http.FileServer(http.Dir("./meshclient/files"))))
  16. }