mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-28 23:05:18 +00:00
20 lines
584 B
Java
20 lines
584 B
Java
package emu.grasscutter.server.dispatch;
|
|
|
|
import express.http.HttpContextHandler;
|
|
import express.http.Request;
|
|
import express.http.Response;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* Used for processing crash dumps & logs generated by the game.
|
|
* Logs are in JSON, and are sent to the server for logging.
|
|
*/
|
|
public final class ClientLogHandler implements HttpContextHandler {
|
|
@Override
|
|
public void handle(Request request, Response response) throws IOException {
|
|
// TODO: Figure out how to dump request body and log to file.
|
|
response.send("{\"code\":0}");
|
|
}
|
|
}
|