You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
306 B
18 lines
306 B
package ui
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
func GetRouter() *mux.Router {
|
|
frontend := getFrontendAssets()
|
|
frontendHandler := http.FileServer(http.FS(frontend))
|
|
|
|
router := mux.NewRouter()
|
|
router.Handle("/", frontendHandler)
|
|
router.NotFoundHandler = frontendHandler
|
|
return router
|
|
}
|