更新web服务器自定义token解析回调

This commit is contained in:
2025-04-18 11:06:34 +08:00
parent 700479d131
commit cff5448fe0
6 changed files with 91 additions and 25 deletions

View File

@@ -6,7 +6,8 @@ class ShelfWebServer implements WebServer {
final String tag = "webserver";
ShelfWebServer(this.logger);
@override
void start(int port, {Function? interceptor}) async {}
void start(int port,
{Function? interceptor, Function(String?)? tokenCheck}) async {}
@override
void stop() {}