Skip to content

Commit

Permalink
Add a run server command
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybaloney committed Sep 13, 2024
1 parent 00240e9 commit 56095c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
html:
npx tailwindcss -i ./src/input.css -o ./src/html/css/output.css

runserver:
npx http-server src/html --proxy http://localhost:7071 &
cd src/api ; func host start -
2 changes: 1 addition & 1 deletion src/html/match.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<h1 class="text-2xl font-bold mb-4" data-translate-key="match">Match Outfit</h1>
<form
class="flex items-center"
hx-post="http://localhost:7071/api/match"
hx-post="/api/match"
hx-trigger="submit"
hx-target="#search-results"
hx-encoding="multipart/form-data"
Expand Down
2 changes: 1 addition & 1 deletion src/html/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<h1 class="text-2xl font-bold mb-4" data-translate-key="search">Search</h1>
<form
class="flex items-center"
hx-post="http://localhost:7071/api/search"
hx-post="/api/search"
hx-trigger="submit"
hx-target="#search-results"
hx-swap="innerHTML"
Expand Down

0 comments on commit 56095c8

Please sign in to comment.