From 060a5784cfa318798569adc26c9a8e7eb19ae1a1 Mon Sep 17 00:00:00 2001 From: limepotato Date: Sun, 15 Sep 2024 21:17:29 -0600 Subject: [PATCH] Refactor --- backend/settings.gradle.kts | 3 +-- .../Application.kt | 4 ++-- .../{personalSiteAPI => nelleObserverBackend}/Client.kt | 2 +- .../{personalSiteAPI => nelleObserverBackend}/Config.kt | 2 +- .../plugins/Routing.kt | 8 ++++---- 5 files changed, 9 insertions(+), 10 deletions(-) rename backend/src/main/kotlin/observer/nelle/{personalSiteAPI => nelleObserverBackend}/Application.kt (92%) rename backend/src/main/kotlin/observer/nelle/{personalSiteAPI => nelleObserverBackend}/Client.kt (98%) rename backend/src/main/kotlin/observer/nelle/{personalSiteAPI => nelleObserverBackend}/Config.kt (96%) rename backend/src/main/kotlin/observer/nelle/{personalSiteAPI => nelleObserverBackend}/plugins/Routing.kt (90%) diff --git a/backend/settings.gradle.kts b/backend/settings.gradle.kts index d9dec3f..4bbc46c 100644 --- a/backend/settings.gradle.kts +++ b/backend/settings.gradle.kts @@ -1,2 +1 @@ -rootProject.name = "personalSiteAPI" - +rootProject.name = "nelleObserverBackend" diff --git a/backend/src/main/kotlin/observer/nelle/personalSiteAPI/Application.kt b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/Application.kt similarity index 92% rename from backend/src/main/kotlin/observer/nelle/personalSiteAPI/Application.kt rename to backend/src/main/kotlin/observer/nelle/nelleObserverBackend/Application.kt index 608ef13..395a4f1 100644 --- a/backend/src/main/kotlin/observer/nelle/personalSiteAPI/Application.kt +++ b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/Application.kt @@ -1,6 +1,6 @@ @file:Suppress("ktlint:standard:no-wildcard-imports") -package observer.nelle.personalSiteAPI +package observer.nelle.nelleObserverBackend import io.ktor.client.* import io.ktor.client.engine.cio.* @@ -13,7 +13,7 @@ import io.ktor.server.netty.* import io.ktor.server.plugins.contentnegotiation.* import io.ktor.server.plugins.cors.routing.* import kotlinx.coroutines.runBlocking -import observer.nelle.personalSiteAPI.plugins.configureRouting +import observer.nelle.nelleObserverBackend.plugins.configureRouting fun main(args: Array) { embeddedServer( diff --git a/backend/src/main/kotlin/observer/nelle/personalSiteAPI/Client.kt b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/Client.kt similarity index 98% rename from backend/src/main/kotlin/observer/nelle/personalSiteAPI/Client.kt rename to backend/src/main/kotlin/observer/nelle/nelleObserverBackend/Client.kt index e37848a..9698ce1 100644 --- a/backend/src/main/kotlin/observer/nelle/personalSiteAPI/Client.kt +++ b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/Client.kt @@ -1,6 +1,6 @@ @file:Suppress("ktlint:standard:no-wildcard-imports") -package observer.nelle.personalSiteAPI +package observer.nelle.nelleObserverBackend import io.ktor.client.* import io.ktor.client.request.forms.* diff --git a/backend/src/main/kotlin/observer/nelle/personalSiteAPI/Config.kt b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/Config.kt similarity index 96% rename from backend/src/main/kotlin/observer/nelle/personalSiteAPI/Config.kt rename to backend/src/main/kotlin/observer/nelle/nelleObserverBackend/Config.kt index a0200a8..c332075 100644 --- a/backend/src/main/kotlin/observer/nelle/personalSiteAPI/Config.kt +++ b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/Config.kt @@ -1,6 +1,6 @@ @file:Suppress("ktlint:standard:no-wildcard-imports") -package observer.nelle.personalSiteAPI +package observer.nelle.nelleObserverBackend import java.io.File import java.io.FileInputStream diff --git a/backend/src/main/kotlin/observer/nelle/personalSiteAPI/plugins/Routing.kt b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Routing.kt similarity index 90% rename from backend/src/main/kotlin/observer/nelle/personalSiteAPI/plugins/Routing.kt rename to backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Routing.kt index 7767d31..74ccff0 100644 --- a/backend/src/main/kotlin/observer/nelle/personalSiteAPI/plugins/Routing.kt +++ b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Routing.kt @@ -1,6 +1,6 @@ @file:Suppress("ktlint:standard:no-wildcard-imports") -package observer.nelle.personalSiteAPI.plugins +package observer.nelle.nelleObserverBackend.plugins import io.ktor.client.* import io.ktor.http.* @@ -8,9 +8,9 @@ import io.ktor.server.application.* import io.ktor.server.request.* import io.ktor.server.response.* import io.ktor.server.routing.* -import observer.nelle.personalSiteAPI.Config -import observer.nelle.personalSiteAPI.getMeow -import observer.nelle.personalSiteAPI.makePost +import observer.nelle.nelleObserverBackend.Config +import observer.nelle.nelleObserverBackend.getMeow +import observer.nelle.nelleObserverBackend.makePost import java.util.* import kotlin.concurrent.timerTask