mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
feat: Improve routing paths
This commit is contained in:
parent
80c8083610
commit
df999c00c4
@ -18,6 +18,7 @@ fun Application.configureRouting() {
|
|||||||
routing {
|
routing {
|
||||||
route("/v${configuration.apiVersion}") {
|
route("/v${configuration.apiVersion}") {
|
||||||
route("/patches") {
|
route("/patches") {
|
||||||
|
route("latest") {
|
||||||
get {
|
get {
|
||||||
val patches = backend.getRelease(configuration.organization, configuration.patchesRepository)
|
val patches = backend.getRelease(configuration.organization, configuration.patchesRepository)
|
||||||
val integrations = configuration.integrationsRepositoryNames.map {
|
val integrations = configuration.integrationsRepositoryNames.map {
|
||||||
@ -46,6 +47,7 @@ fun Application.configureRouting() {
|
|||||||
call.respond(release)
|
call.respond(release)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
get("/contributors") {
|
get("/contributors") {
|
||||||
val contributors = configuration.contributorsRepositoryNames.map {
|
val contributors = configuration.contributorsRepositoryNames.map {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user