0.1.001 Split out web to separate repo

This commit is contained in:
Daniel Mason 2021-12-25 12:05:57 +13:00
parent 525d5c92b5
commit d268d939eb
65 changed files with 11 additions and 42509 deletions

View file

@ -99,6 +99,9 @@ func HandleRequests(port string) {
spaStatic := spaStaticHandler{staticPath: StaticDirectory}
r.PathPrefix("/img").Handler(spaStatic)
apiDocs := spaStaticHandler{staticPath: "docs/api/build"}
r.PathPrefix("/docs").Handler(apiDocs)
// SERVE FRONTEND - NO AUTH
spa := spaHandler{staticPath: "web/build", indexPath: "index.html"}
r.PathPrefix("/").Handler(spa)