Skip to content

Commit

Permalink
Fix #617 _verbs dict hx-put
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyfeldroy committed Jan 7, 2025
1 parent 0d05029 commit 564d2fb
Show file tree
Hide file tree
Showing 2 changed files with 238 additions and 604 deletions.
2 changes: 1 addition & 1 deletion fasthtml/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def url_path_for(self:HTTPConnection, name: str, **path_params):
return URLPath(f"{self.scope['root_path']}{lp}", lp.protocol, lp.host)

# %% ../nbs/api/00_core.ipynb
_verbs = dict(get='hx-get', post='hx-post', put='hx-post', delete='hx-delete', patch='hx-patch', link='href')
_verbs = dict(get='hx-get', post='hx-post', put='hx-put', delete='hx-delete', patch='hx-patch', link='href')

def _url_for(req, t):
if callable(t): t = t.__routename__
Expand Down
Loading

0 comments on commit 564d2fb

Please sign in to comment.