From 80c8083610fbcc30341ae392463d6141a3623bf3 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 29 Jan 2024 10:57:47 +0100 Subject: [PATCH] chore: Specify extension for static API files --- .../app/revanced/api/plugins/Routing.kt | 5 +- .../static/api/{about => about.json} | 48 +++++++------------ 2 files changed, 20 insertions(+), 33 deletions(-) rename src/main/resources/static/api/{about => about.json} (65%) diff --git a/src/main/kotlin/app/revanced/api/plugins/Routing.kt b/src/main/kotlin/app/revanced/api/plugins/Routing.kt index 8736aff..3976400 100644 --- a/src/main/kotlin/app/revanced/api/plugins/Routing.kt +++ b/src/main/kotlin/app/revanced/api/plugins/Routing.kt @@ -76,7 +76,10 @@ fun Application.configureRouting() { } } - staticResources("/", "/static/api") { contentType { ContentType.Application.Json } } + staticResources("/", "/static/api") { + contentType { ContentType.Application.Json } + extensions("json") + } } } diff --git a/src/main/resources/static/api/about b/src/main/resources/static/api/about.json similarity index 65% rename from src/main/resources/static/api/about rename to src/main/resources/static/api/about.json index 8f62d26..1a0d1cb 100644 --- a/src/main/resources/static/api/about +++ b/src/main/resources/static/api/about.json @@ -1,16 +1,13 @@ { "name": "ReVanced", "about": "ReVanced was born out of Vanced's discontinuation and it is our goal to continue the legacy of what Vanced left behind. Thanks to ReVanced Patcher, it's possible to create long-lasting patches for nearly any Android app. ReVanced's patching system is designed to allow patches to work on new versions of the apps automatically with bare minimum maintenance.", - "branding": - { + "branding": { "logo": "https://raw.githubusercontent.com/ReVanced/revanced-branding/main/assets/revanced-logo/revanced-logo.svg" }, - "contact": - { + "contact": { "email": "contact@revanced.app" }, - "socials": - [ + "socials": [ { "name": "Website", "url": "https://revanced.app", @@ -18,13 +15,11 @@ }, { "name": "GitHub", - "url": "https://github.com/revanced", - "preferred": false + "url": "https://github.com/revanced" }, { "name": "Twitter", - "url": "https://twitter.com/revancedapp", - "preferred": false + "url": "https://twitter.com/revancedapp" }, { "name": "Discord", @@ -33,29 +28,23 @@ }, { "name": "Reddit", - "url": "https://www.reddit.com/r/revancedapp", - "preferred": false + "url": "https://www.reddit.com/r/revancedapp" }, { "name": "Telegram", - "url": "https://t.me/app_revanced", - "preferred": false + "url": "https://t.me/app_revanced" }, { "name": "YouTube", - "url": "https://www.youtube.com/@ReVanced", - "preferred": false + "url": "https://www.youtube.com/@ReVanced" } ], - "donations": - { - "wallets": - [ + "donations": { + "wallets": [ { "network": "Bitcoin", "currency_code": "BTC", - "address": "bc1q4x8j6mt27y5gv0q625t8wkr87ruy8fprpy4v3f", - "preferred": false + "address": "bc1q4x8j6mt27y5gv0q625t8wkr87ruy8fprpy4v3f" }, { "network": "Dogecoin", @@ -66,24 +55,20 @@ { "network": "Ethereum", "currency_code": "ETH", - "address": "0x7ab4091e00363654bf84B34151225742cd92FCE5", - "preferred": false + "address": "0x7ab4091e00363654bf84B34151225742cd92FCE5" }, { "network": "Litecoin", "currency_code": "LTC", - "address": "LbJi8EuoDcwaZvykcKmcrM74jpjde23qJ2", - "preferred": false + "address": "LbJi8EuoDcwaZvykcKmcrM74jpjde23qJ2" }, { "network": "Monero", "currency_code": "XMR", - "address": "46YwWDbZD6jVptuk5mLHsuAmh1BnUMSjSNYacozQQEraWSQ93nb2yYVRHoMR6PmFYWEHsLHg9tr1cH5M8Rtn7YaaGQPCjSh", - "preferred": false + "address": "46YwWDbZD6jVptuk5mLHsuAmh1BnUMSjSNYacozQQEraWSQ93nb2yYVRHoMR6PmFYWEHsLHg9tr1cH5M8Rtn7YaaGQPCjSh" } ], - "links": - [ + "links": [ { "name": "Open Collective", "url": "https://opencollective.com/revanced", @@ -91,8 +76,7 @@ }, { "name": "GitHub Sponsors", - "url": "https://github.com/sponsors/ReVanced", - "preferred": false + "url": "https://github.com/sponsors/ReVanced" } ] }