gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taldir] branch master updated: wip


From: gnunet
Subject: [taler-taldir] branch master updated: wip
Date: Wed, 08 Jun 2022 10:26:39 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository taldir.

The following commit(s) were added to refs/heads/master by this push:
     new f3b679f  wip
f3b679f is described below

commit f3b679fc3964719a7190ed2dd9723462fa7379d4
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Wed Jun 8 10:26:08 2022 +0200

    wip
---
 taldir.go | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/taldir.go b/taldir.go
index ffd4999..862e8fd 100644
--- a/taldir.go
+++ b/taldir.go
@@ -192,11 +192,31 @@ func addPendingValidation(w http.ResponseWriter, r 
*http.Request){
   sendEmail(vars["identity"], validation)
 }
 
+// Add a new message
+func addMessageToInbox(w http.ResponseWriter, r *http.Request) {
+}
+
+// Add a new message
+func getInboxMessages(w http.ResponseWriter, r *http.Request) {
+}
+
+// Add a new message
+func deleteInboxMessages(w http.ResponseWriter, r *http.Request) {
+}
+
+
+
 func handleRequests() {
   myRouter := mux.NewRouter().StrictSlash(true)
+  /* Registration API */
   myRouter.HandleFunc("/directory/{identity_key}", 
returnSingleEntry).Methods("GET")
   myRouter.HandleFunc("/validation/{reference}", 
validateSingleEntry).Methods("GET")
   myRouter.HandleFunc("/register/{identity}", 
addPendingValidation).Methods("POST")
+
+  /* Inbox API */
+  myRouter.HandleFunc("/inbox/{identity_key}", 
addMessageToInbox).Methods("POST")
+  myRouter.HandleFunc("/inbox/{identity_key}", getInboxMessages).Methods("GET")
+  myRouter.HandleFunc("/inbox/{identity_key}/{message_idx}", 
deleteInboxMessages).Methods("DELETE")
   
log.Fatal(http.ListenAndServe(cfg.Section("taldir").Key("bind_to").MustString("localhost:11000"),
 myRouter))
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]