4 Commits

Author SHA1 Message Date
dd62e1828d udapte README.md 2024-07-12 12:41:29 +02:00
6a01990465 Merge pull request 'Update dependencies' (#32) from upgrade-dependencies into master
Reviewed-on: #32
2024-06-11 23:55:49 +02:00
47f25c5064 Update dependencies 2024-04-09 19:18:36 +02:00
951a659be1 Fix URL deprecation warnings 2024-04-09 19:18:36 +02:00
4 changed files with 10 additions and 11 deletions

View File

@ -1,8 +1,7 @@
![Website](https://img.shields.io/website?down_color=red&down_message=offline&label=tcor.mosad.xyz&up_color=brightgreen&up_message=online&url=https%3A%2F%2Ftcor.mosad.xyz%2Fhealth)
[![Build Status](https://ci.mosad.xyz/api/badges/Seil0/TheCitadelofRicks/status.svg)](https://ci.mosad.xyz/Seil0/TheCitadelofRicks)
[![Release](https://img.shields.io/badge/dynamic/json.svg?label=release&url=https://git.mosad.xyz/api/v1/repos/Seil0/TheCitadelofRicks/releases&query=$[0].tag_name)](https://git.mosad.xyz/Seil0/TheCitadelofRicks/releases)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
# TheCitadelofRicks
The API backend for [ProjectLaogai](https://git.mosad.xyz/Seil0/ProjectLaogai).
The documentation can be found in the [wiki](https://git.mosad.xyz/Seil0/TheCitadelofRicks/wiki).
The documentation can be found in the [wiki](https://git.mosad.xyz/Seil0/TheCitadelofRicks/wiki).

View File

@ -15,11 +15,11 @@ repositories {
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web:3.2.4'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.9.23'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
implementation 'org.jsoup:jsoup:1.15.3'
implementation 'com.google.code.gson:gson:2.10'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0'
implementation 'org.jsoup:jsoup:1.17.2'
implementation 'com.google.code.gson:gson:2.10.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'
}
test {

View File

@ -29,7 +29,7 @@ import java.io.BufferedReader
import java.io.IOException
import java.io.InputStreamReader
import java.net.HttpURLConnection
import java.net.URL
import java.net.URI
class CachetAPIController {
@ -41,7 +41,7 @@ class CachetAPIController {
fun postTotalRequests() {
try {
val url = URL("${StartupController.cachetBaseURL}/api/v1/metrics/1/points")
val url = URI("${StartupController.cachetBaseURL}/api/v1/metrics/1/points").toURL()
val jsonInputString = "{\"value\": ${totalRequests -oldTotalRequests}, \"timestamp\": \"${(System.currentTimeMillis() / 1000)}\"}"
oldTotalRequests = totalRequests

View File

@ -29,7 +29,7 @@ import org.mosad.thecitadelofricks.Status
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import java.net.HttpURLConnection
import java.net.URL
import java.net.URI
import java.time.LocalDateTime
import java.util.*
import kotlin.collections.HashMap
@ -90,8 +90,8 @@ class StatusController {
var swfrCode = 999
try {
val hsoURL = URL("https://www.hs-offenburg.de/")
val swfrURL = URL("https://www.swfr.de/")
val hsoURL = URI("https://www.hs-offenburg.de/").toURL()
val swfrURL = URI("https://www.swfr.de/").toURL()
var connection = hsoURL.openConnection() as HttpURLConnection
connection.requestMethod = "HEAD"