Move api routes to /api and add /api/sessions
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
<a href="/history">tillbaka</a>
|
||||
<br>
|
||||
<br>
|
||||
<form action="/session/{{session_id}}/edit" method="post">
|
||||
<form action="/api/session/{{session_id}}/edit" method="post">
|
||||
<input type="hidden" id="category" name="category" value="{{session.category}}">
|
||||
<input type="hidden" id="deleted" name="deleted" value="{{session.deleted}}">
|
||||
<span>Started:</span>
|
||||
@ -20,7 +20,7 @@
|
||||
<button type="submit">spara</button>
|
||||
</form>
|
||||
<br>
|
||||
<form action="/session/{{this.session_id}}/delete" method="post">
|
||||
<form action="/api/session/{{this.session_id}}/delete" method="post">
|
||||
<button type="submit">ta bort</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user