aboutsummaryrefslogtreecommitdiff
path: root/server/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/storage.go')
-rw-r--r--server/storage.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/server/storage.go b/server/storage.go
new file mode 100644
index 0000000..dd11f22
--- /dev/null
+++ b/server/storage.go
@@ -0,0 +1,19 @@
+package main
+
+import (
+ "net/http"
+)
+
+// Handle storage requests
+func storageHandler(w http.ResponseWriter, r *http.Request) {
+ // filename := r.URL.String()[5:]
+ if r.Method == "GET" {
+
+ } else if r.Method == "PUT" {
+
+ } else if r.Method == "DELETE" {
+
+ } else {
+ w.WriteHeader(http.StatusMethodNotAllowed)
+ }
+}