PLT-327: Add help text for Markdown
Этот коммит содержится в:
11
web/web.go
11
web/web.go
@@ -80,6 +80,8 @@ func InitWeb() {
|
||||
|
||||
mainrouter.Handle("/hooks/{id:[A-Za-z0-9]+}", api.ApiAppHandler(incomingWebhook)).Methods("POST")
|
||||
|
||||
mainrouter.Handle("/docs/{doc:[A-Za-z0-9]+}", api.AppHandlerIndependent(docs)).Methods("GET")
|
||||
|
||||
// ----------------------------------------------------------------------------------------------
|
||||
// *ANYTHING* team specific should go below this line
|
||||
// ----------------------------------------------------------------------------------------------
|
||||
@@ -494,6 +496,15 @@ func findTeam(c *api.Context, w http.ResponseWriter, r *http.Request) {
|
||||
page.Render(c, w)
|
||||
}
|
||||
|
||||
func docs(c *api.Context, w http.ResponseWriter, r *http.Request) {
|
||||
params := mux.Vars(r)
|
||||
doc := params["doc"]
|
||||
|
||||
page := NewHtmlTemplatePage("docs", "Documentation")
|
||||
page.Props["Site"] = doc
|
||||
page.Render(c, w)
|
||||
}
|
||||
|
||||
func resetPassword(c *api.Context, w http.ResponseWriter, r *http.Request) {
|
||||
isResetLink := true
|
||||
hash := r.URL.Query().Get("h")
|
||||
|
||||
Ссылка в новой задаче
Block a user