mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Upgrade all maven dependencies for 2022 (#377)
This also fixes compilation with JDK 17.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package org.photonvision.server;
|
||||
|
||||
import io.javalin.Javalin;
|
||||
import io.javalin.http.staticfiles.Location;
|
||||
import org.photonvision.common.logging.LogGroup;
|
||||
import org.photonvision.common.logging.Logger;
|
||||
|
||||
@@ -28,7 +29,7 @@ public class Server {
|
||||
Javalin.create(
|
||||
config -> {
|
||||
config.showJavalinBanner = false;
|
||||
config.addStaticFiles("web");
|
||||
config.addStaticFiles("web", Location.CLASSPATH);
|
||||
config.enableCorsForAllOrigins();
|
||||
|
||||
config.requestLogger(
|
||||
|
||||
Reference in New Issue
Block a user