Creation of base template (#1)

* Sample template created

* added findByName functionality for item

* Solve Cors errors and inhibit DefaultExposure

* changed project structure

* Added frontend
This commit is contained in:
cato
2022-06-01 01:36:40 +02:00
committed by GitHub
parent edaf3c557e
commit cb74fe133c
32 changed files with 7028 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package whattocook.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_FOUND)
public class ItemNotFoundException extends RuntimeException {
private static final long serialVersionUID = 1L;
public ItemNotFoundException(){
super();
}
public ItemNotFoundException(String message) {
super(message);
}
public ItemNotFoundException(String message, Throwable cause) {
super(message, cause);
}
}