Skip to content

Commit

Permalink
Moved more ressources to more sensible places
Browse files Browse the repository at this point in the history
  • Loading branch information
jokil123 committed Nov 5, 2024
1 parent 0e40fc2 commit 2ab6e27
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EsefexApi/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (api *HttpApi) run() {
router.Handle("/dump", cors(h.GetDump()))
router.Handle("/", cors(h.GetIndex())).Methods("GET")

router.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./api/public/"))))
router.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./ressource/public/"))))

router.Handle("/api/ws", cors(auth(h.GetWs()))).Methods("GET")

Expand Down
2 changes: 1 addition & 1 deletion EsefexApi/api/routes/getlinkdefer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (h *RouteHandlers) GetLinkDefer() http.Handler {
LinkToken: linkToken,
}

tmpl, err := template.ParseFiles("./api/templates/link.html")
tmpl, err := template.ParseFiles("./ressource/templates/link.html")
if err != nil {
http.Error(w, "Error parsing template", http.StatusInternalServerError)
return
Expand Down
2 changes: 1 addition & 1 deletion EsefexApi/api/routes/getlinkredirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (h *RouteHandlers) GetLinkRedirect() http.Handler {

w.Header().Set("Content-Type", "text/html")

tmpl, err := template.ParseFiles("./api/templates/linkredirect.html")
tmpl, err := template.ParseFiles("./ressource/templates/linkredirect.html")
if err != nil {
http.Error(w, "Error parsing template", http.StatusInternalServerError)
return
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2ab6e27

Please sign in to comment.