aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-09-25 23:00:57 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-09-25 23:00:57 +0200
commit982bd8a43c50bb5845b694dbd0b3e0ffbf43dad7 (patch)
treea0b711018858b8daf918c9f066562a6f9afc04f8 /main.go
parent08287375736a0a57c03b4bd6d9c222dc5567db6e (diff)
downloadguichet-982bd8a43c50bb5845b694dbd0b3e0ffbf43dad7.tar.gz
guichet-982bd8a43c50bb5845b694dbd0b3e0ffbf43dad7.zip
done with APIapi
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 34a1630..9763f53 100644
--- a/main.go
+++ b/main.go
@@ -147,7 +147,8 @@ func server(args []string) {
r.HandleFunc("/login", handleLogin)
r.HandleFunc("/logout", handleLogout)
- r.HandleFunc("/api/unstable/website/{bucket}", handleAPIWebsite)
+ r.HandleFunc("/api/unstable/website", handleAPIWebsiteList)
+ r.HandleFunc("/api/unstable/website/{bucket}", handleAPIWebsiteInspect)
r.HandleFunc("/profile", handleProfile)
r.HandleFunc("/passwd", handlePasswd)