Skip to content

Commit

Permalink
Merge pull request #1 from chapai/chapai-docs-patch
Browse files Browse the repository at this point in the history
Code tags added to "Project routing setting"
  • Loading branch information
chapai committed Jan 27, 2015
2 parents efcf3cb + 7f9d1fb commit 833a8f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en-US/quickstart/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sort: 2
# Project routing setting

So, we've created a beego project and ran it in previous section. But how does it work? Let's investigate from the starting file (main.go).

``` go
package main

import (
Expand All @@ -17,7 +17,7 @@ So, we've created a beego project and ran it in previous section. But how does i
func main() {
beego.Run()
}

```
We can see two simple lines. The first one registers the router by calling `beego.Router` and the second one is `beego.Run`. What did these two lines do?

1. Actually beego.Router registered an address. The first argument is the request uri and here is `/` which means the request doesn't have any uri. The second argument is the Controller who will handle the requests for this uri. We can also register a router like this:
Expand Down

0 comments on commit 833a8f6

Please sign in to comment.