Hello,
I am developing an app with a REST API with SpringBoot for the backend, I have experience from doing the same work in a REST API with ASP.NET, so maybe that is contributing to the confusion. Here is the form in the view:
<div class="login-block">
<form id="login-form" action="/authenticate" method="post">
<input type="text" name="email" id="email" placeholder="Email">
<input type="password" name="password" id="password" class="lock" placeholder="Password">
<input type="submit" value="Login">
<h3>Não tem conta? <a href="signup.html">Registe-se </a></h3>
</form>
</div>
And here is the method I want it to call:
@PostMapping(path = "/authenticate")
public ModelAndView authenticate( @RequestParam("email") String email, @RequestParam("password") String password)
{
//do stuff with the data
return new ModelAndView("");
}
Right now, I get a 405 Method Not Allowed, with the browser console saying relative to the method "authenticate" it's trying to call: "No resource with given identifier found"
What should I do?