diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-03-16 10:35:18 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-03-16 10:35:18 +0530 |
commit | fb387fe290d907dd8a1b0e3600c5468043071628 (patch) | |
tree | 228430b4d95ea2582c1d31bff49de6b59dbbe946 /api/main.go | |
parent | 8fd42493709792ffe85f519c75b085ed65123baa (diff) |
api/login: init
Diffstat (limited to 'api/main.go')
-rw-r--r-- | api/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/main.go b/api/main.go index 29f71c9..c4645b8 100644 --- a/api/main.go +++ b/api/main.go @@ -10,6 +10,8 @@ import ( func Run(db *redqdb.SafeDB) { const prefix string = "POST /_redq/api" + login := newLogin(db) + http.Handle(prefix+"/ac/login", login) exampleApi := newExamplApiName(db) http.Handle(prefix+"/example", exampleApi) |