From 55d968df5edc370be1c8101da8691638c3f4ab66 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Thu, 6 May 2021 23:06:35 +0430 Subject: [PATCH] [SKIP CI] add some doc comments --- .../main/kotlin/ir/armor/tachidesk/server/JavalinSetup.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/src/main/kotlin/ir/armor/tachidesk/server/JavalinSetup.kt b/server/src/main/kotlin/ir/armor/tachidesk/server/JavalinSetup.kt index e05eb1d..727c11b 100644 --- a/server/src/main/kotlin/ir/armor/tachidesk/server/JavalinSetup.kt +++ b/server/src/main/kotlin/ir/armor/tachidesk/server/JavalinSetup.kt @@ -102,6 +102,7 @@ object JavalinSetup { ctx.result(e.message ?: "Internal Server Error") } + // list all extensions app.get("/api/v1/extension/list") { ctx -> ctx.json( future { @@ -110,6 +111,7 @@ object JavalinSetup { ) } + // install extension identified with "pkgName" app.get("/api/v1/extension/install/:pkgName") { ctx -> val pkgName = ctx.pathParam("pkgName") @@ -120,6 +122,7 @@ object JavalinSetup { ) } + // update extension identified with "pkgName" app.get("/api/v1/extension/update/:pkgName") { ctx -> val pkgName = ctx.pathParam("pkgName") @@ -130,6 +133,7 @@ object JavalinSetup { ) } + // uninstall extension identified with "pkgName" app.get("/api/v1/extension/uninstall/:pkgName") { ctx -> val pkgName = ctx.pathParam("pkgName") @@ -273,7 +277,7 @@ object JavalinSetup { ) } - // global search + // global search, Not implemented yet app.get("/api/v1/search/:searchTerm") { ctx -> val searchTerm = ctx.pathParam("searchTerm") ctx.json(sourceGlobalSearch(searchTerm))