mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-25 01:41:40 +00:00
Use Avaje Jsonb for Javalin JSON (#2512)
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
package org.photonvision.server;
|
||||
|
||||
import io.avaje.jsonb.javalin.JavalinJsonb;
|
||||
import io.javalin.Javalin;
|
||||
import io.javalin.plugin.bundled.CorsPlugin;
|
||||
import java.net.InetSocketAddress;
|
||||
@@ -103,6 +104,7 @@ public class Server {
|
||||
return "Got WebSockets binary message from host: " + host;
|
||||
}));
|
||||
});
|
||||
javalinConfig.jsonMapper(new JavalinJsonb());
|
||||
});
|
||||
|
||||
/* Web Socket Events for Data Exchange */
|
||||
|
||||
Reference in New Issue
Block a user