mirror of
https://github.com/guilhermewerner/java-spark
synced 2025-06-15 11:44:19 +00:00
Update Aplicacao.java
This commit is contained in:
@ -8,6 +8,8 @@ public class Aplicacao {
|
|||||||
private static ProdutoService produtoService = new ProdutoService();
|
private static ProdutoService produtoService = new ProdutoService();
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
staticFiles.location("/");
|
||||||
|
|
||||||
port(6789);
|
port(6789);
|
||||||
|
|
||||||
post("/produto", (request, response) -> produtoService.add(request, response));
|
post("/produto", (request, response) -> produtoService.add(request, response));
|
||||||
|
Reference in New Issue
Block a user