Gregory Rudolph
3 years ago
3 changed files with 18 additions and 1 deletions
@ -1,7 +1,16 @@
@@ -1,7 +1,16 @@
|
||||
package main |
||||
|
||||
import ( |
||||
"net/http" |
||||
|
||||
"github.com/gorilla/mux" |
||||
) |
||||
|
||||
func startRest() { |
||||
return |
||||
router := mux.NewRouter().StrictSlash(true) |
||||
|
||||
|
||||
router.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static")))) |
||||
router.PathPrefix("/verifications/").Handler(http.StripPrefix("/verifications/", http.FileServer(http.Dir("./verifications")))) |
||||
http.ListenAndServe(":8080", router) |
||||
} |
Loading…
Reference in new issue