import other kontor repos into directories
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package office
|
||||
|
||||
import (
|
||||
"gitlab.thpeetz.de/kontor/kontor-go/pkg/auth"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// GetRoutes returns all routes for office related data.
|
||||
func GetRoutes(router *gin.Engine) {
|
||||
officeRoutes := router.Group("/office")
|
||||
officeRoutes.GET("/", auth.EnsureLoggedIn(), showIndexPage)
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package office
|
||||
|
||||
import (
|
||||
"gitlab.thpeetz.de/kontor/kontor-go/pkg/util"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func showIndexPage(c *gin.Context) {
|
||||
util.Render(c, gin.H{"title": "Home Office", "payload": nil}, "office/index.html")
|
||||
}
|
||||
Reference in New Issue
Block a user