Skip to content

Commit

Permalink
route and action updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm committed Dec 7, 2018
1 parent c306e3a commit 1ca31f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/controllers/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ func (c *DocController) VersionHome(version string) {
File(filepath.Join("static", version))
case "godoc":
c.GoDoc()
case "examples":
c.Examples()
default:
queryStr := c.Req.URL().Query().Encode()
targetURL := c.RouteURL("docs.show_doc", releases[0], version)
Expand All @@ -92,9 +90,6 @@ func (c *DocController) VersionHome(version string) {
func (c *DocController) ShowDoc(version, content string) {
// handle certian doc path and updates
switch content {
case "release-notes.html":
c.ReleaseNotes(version)
return
case "error-handling.html":
if util.VersionLtEq(version, "v0.9") {
c.Reply().Redirect(c.RouteURL("docs.show_doc", version, "/centralized-error-handler.html"))
Expand Down
10 changes: 10 additions & 0 deletions config/routes.conf
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,19 @@ domains {
path = "/*content"
action = "ShowDoc"
}
release_notes {
path = "/release-notes.html"
action = "ReleaseNotes"
}
}
}

examples {
path = "/examples.html"
controller = "DocController"
action = "Examples"
}

} # end - docs app routes

} # end - docs aahframework
Expand Down

0 comments on commit 1ca31f0

Please sign in to comment.