Skip to content
Snippets Groups Projects
Commit e1def6c1 authored by Yonatan's avatar Yonatan
Browse files

Refactor

parent 33ddb4a3
No related branches found
No related tags found
1 merge request!1Final merge
package es.yonatan.tfg.rest;
package es.yonatan.tfg.service;
import com.google.gson.Gson;
import spark.Spark;
public class RESTServer {
public class SparkServer {
public static void main(String[] args) {
var server = new RESTServer();
var server = new SparkServer();
server.start(8080);
}
......@@ -21,7 +21,7 @@ public class RESTServer {
System.out.println("Loaded routes:");
Spark.routes().forEach(route ->
System.out.println("\t- " + route.getHttpMethod() + " " + route.getMatchUri())
System.out.printf("\t- %s %s", route.getHttpMethod(), route.getMatchUri())
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment