Skip to content

Commit

Permalink
trying to change POST endpoint so that GET won't erase POST results
Browse files Browse the repository at this point in the history
  • Loading branch information
RusFortunat committed Nov 13, 2024
1 parent 1b8ee63 commit af7be5b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public String hangleGetMapping(Model theModel){
return "main-view";
}

@PostMapping("/write-number")
@PostMapping("/write-number-result")
public String hanglePostMapping(@ModelAttribute("NeuralNetwork") NeuralNetwork ourNeuralNetwork,
@ModelAttribute("DrawnImages") DrawnImages drawnImages){

Expand Down
Binary file modified src/main/resources/image-database.mv.db
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/resources/templates/main-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h3>Draw your number here</h3>

<br>

<form th:action="@{/write-number}" method="POST">
<form th:action="@{/write-number-result}" method="POST">

<!-- I'm still working on this feature. There are some problems with properly extracting PyTorch
neural network parameters
Expand Down

0 comments on commit af7be5b

Please sign in to comment.