summaryrefslogtreecommitdiff
path: root/opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-06-15 23:48:44 +0200
committermjkwiatkowski <mati.rewa@gmail.com>2026-06-15 23:48:44 +0200
commit0731bd58889df127ef87aba2590d505d79e6646f (patch)
tree128aceeaf60ac5c098297f7cfda9fa47f974fc84 /opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt
parentf1ecbf0ce40d43685d8a6aeba0fe4cdebbd4536f (diff)
feat: migrated the past project to the sunfish repo
Diffstat (limited to 'opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt')
-rw-r--r--opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt6
1 files changed, 6 insertions, 0 deletions
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