summaryrefslogtreecommitdiff
path: root/Endpoints/Common.go
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2025-12-06 12:05:43 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2025-12-06 12:05:43 +0500
commit5fd81183f54662fdf08549c0d635e80166c62fe9 (patch)
tree0b730dd4f19c7446fabcc2ee7cc7313e94e67fe3 /Endpoints/Common.go
initial endpoints
Diffstat (limited to 'Endpoints/Common.go')
-rw-r--r--Endpoints/Common.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/Endpoints/Common.go b/Endpoints/Common.go
new file mode 100644
index 0000000..b30afd0
--- /dev/null
+++ b/Endpoints/Common.go
@@ -0,0 +1,8 @@
+package endpoints
+
+import "net/http"
+
+func RegisterEndpoints() {
+ http.HandleFunc("/api/getSongs", getSongs)
+ http.HandleFunc("/api/getSong", getSong)
+}