Skip to content

Commit

Permalink
Code tags added to "Project routing setting"
Browse files Browse the repository at this point in the history
  • Loading branch information
chapai committed Jan 27, 2015
1 parent efcf3cb commit 7f9d1fb
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 7f9d1fb

Please sign in to comment.