From 82674e8c9d4eb06e15b78d711ddb47d510b7d1b5 Mon Sep 17 00:00:00 2001 From: Szymon Uglis Date: Sun, 22 Dec 2024 10:04:14 +0100 Subject: [PATCH] Reqquire Jwt --- lib/src/web_app/api_server.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/web_app/api_server.dart b/lib/src/web_app/api_server.dart index 34cc067..9298c73 100644 --- a/lib/src/web_app/api_server.dart +++ b/lib/src/web_app/api_server.dart @@ -142,9 +142,8 @@ class WebServer { return shelf_router.Router() ..get("/api/server-info", _handleServerInfo) ..get("/api/guilds", _requireJwt(_handleGuilds, [JwtPermission.guilds])) - // ..get("/api/guilds/", _requireJwt(_handleGuildDetails, [JwtPermission.guilds])) - ..get("/api/guilds/", _handleGuildDetails) - ..get("/api/guilds//tags", _handleGuildTags) + ..get("/api/guilds/", _requireJwt(_handleGuildDetails, [JwtPermission.guilds])) + ..get("/api/guilds//tags", _requireJwt(_handleGuildTags, [JwtPermission.guilds])) ..get("/api/validate-oauth", _handleValidateCode) ..all(r"/", staticHandler) ..all("/", _handleIndex);