From 0731bd58889df127ef87aba2590d505d79e6646f Mon Sep 17 00:00:00 2001 From: mjkwiatkowski Date: Mon, 15 Jun 2026 23:48:44 +0200 Subject: feat: migrated the past project to the sunfish repo --- .../src/main/kotlin/org/opendc/common/annotations/Endpoint.kt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt (limited to 'opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt') diff --git a/opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt b/opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt new file mode 100644 index 00000000..4ef08a71 --- /dev/null +++ b/opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt @@ -0,0 +1,6 @@ +package org.opendc.common.annotations + +@RequiresOptIn(message = "This is a registered API endpoint.") +@Retention(AnnotationRetention.BINARY) +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.CONSTRUCTOR) +public annotation class Endpoint(val method: String, val name : String) \ No newline at end of file -- cgit v1.2.3