aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-09 23:04:27 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-09 23:04:27 +0100
commitfa96e61d75127d087b776c69df4dadd90197e4e3 (patch)
treebffa0b851431bcd31e88b4dfe5c83933408be386 /main.go
parente51bff05d225ce68143b0aefa282116fe5eb587f (diff)
downloadguichet-fa96e61d75127d087b776c69df4dadd90197e4e3.tar.gz
guichet-fa96e61d75127d087b776c69df4dadd90197e4e3.zip
Add form to create objects
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index a0d5b07..a35ce8b 100644
--- a/main.go
+++ b/main.go
@@ -115,6 +115,7 @@ func main() {
r.HandleFunc("/admin/users", handleAdminUsers)
r.HandleFunc("/admin/groups", handleAdminGroups)
r.HandleFunc("/admin/ldap/{dn}", handleAdminLDAP)
+ r.HandleFunc("/admin/create/{template}/{super_dn}", handleAdminCreate)
staticfiles := http.FileServer(http.Dir("static"))
r.Handle("/static/{file:.*}", http.StripPrefix("/static/", staticfiles))