aboutsummaryrefslogtreecommitdiff
path: root/user/router.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-07-09 11:31:08 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-07-09 11:31:08 +0530
commitc3821df233523ab715fdf06d54c142394411c968 (patch)
tree4f19352740fc5e38b5a8bd98244bafa30e037b1c /user/router.go
parentd0a44ff5cfad5d063929426e2420f6f0d55b1dbe (diff)
added logo/signature upload routesv0.10.0
Diffstat (limited to 'user/router.go')
-rw-r--r--user/router.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/router.go b/user/router.go
index 8a9ad86..d9fa7e0 100644
--- a/user/router.go
+++ b/user/router.go
@@ -1,5 +1,5 @@
/* openbills - Server for web based Libre Billing Software
- * Copyright (C) 2023 Vidhu Kant Sharma <vidhukant@vidhukant.com>
+ * Copyright (C) 2023-2024 Vidhu Kant Sharma <vidhukant@vidhukant.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -25,5 +25,7 @@ func Routes(route *gin.RouterGroup) {
g := route.Group("/user")
{
g.GET("/", handleGetUser)
+ g.POST("/logo", handleUploadLogo)
+ g.POST("/signature", handleUploadSignature)
}
}