Skip to content

Commit

Permalink
Reqquire Jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Dec 22, 2024
1 parent 38df8d7 commit 82674e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/src/web_app/api_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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/<id>", _requireJwt(_handleGuildDetails, [JwtPermission.guilds]))
..get("/api/guilds/<id>", _handleGuildDetails)
..get("/api/guilds/<id>/tags", _handleGuildTags)
..get("/api/guilds/<id>", _requireJwt(_handleGuildDetails, [JwtPermission.guilds]))
..get("/api/guilds/<id>/tags", _requireJwt(_handleGuildTags, [JwtPermission.guilds]))
..get("/api/validate-oauth", _handleValidateCode)
..all(r"/<ignored|.+\w+\.\w+$>", staticHandler)
..all("/<ignored|.*>", _handleIndex);
Expand Down

0 comments on commit 82674e8

Please sign in to comment.