summaryrefslogtreecommitdiff
blob: edeb45b64f2b5cbf5e8ed80a60cfd1f5e1a749bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Used to show the about pages of the application

package about

import (
	"glsamaker/pkg/app/handler/authentication/utils"
	"net/http"
)

// Show renders a template to show the main about page of the application
func Show(w http.ResponseWriter, r *http.Request) {
	user := utils.GetAuthenticatedUser(r)
	renderAboutTemplate(w, user)
}

// ShowSearch renders a template to show the about
// page about the search functionality
func ShowSearch(w http.ResponseWriter, r *http.Request) {
	user := utils.GetAuthenticatedUser(r)
	renderAboutSearchTemplate(w, user)
}

// ShowCLI renders a template to show the about
// page about the command line tool
func ShowCLI(w http.ResponseWriter, r *http.Request) {
	user := utils.GetAuthenticatedUser(r)
	renderAboutCLITemplate(w, user)
}