Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
23deaedd
Commit
23deaedd
authored
Jul 25, 2013
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add to beego
parent
538d39a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
beego.go
beego.go
+4
-4
No files found.
beego.go
View file @
23deaedd
...
@@ -133,8 +133,8 @@ func (app *App) Run() {
...
@@ -133,8 +133,8 @@ func (app *App) Run() {
}
}
}
}
func
(
app
*
App
)
Router
(
path
string
,
c
ControllerInterface
)
*
App
{
func
(
app
*
App
)
Router
(
path
string
,
c
ControllerInterface
,
mappingMethods
...
string
)
*
App
{
app
.
Handlers
.
Add
(
path
,
c
)
app
.
Handlers
.
Add
(
path
,
c
,
mappingMethods
...
)
return
app
return
app
}
}
...
@@ -181,8 +181,8 @@ func RegisterController(path string, c ControllerInterface) *App {
...
@@ -181,8 +181,8 @@ func RegisterController(path string, c ControllerInterface) *App {
return
BeeApp
return
BeeApp
}
}
func
Router
(
rootpath
string
,
c
ControllerInterface
)
*
App
{
func
Router
(
rootpath
string
,
c
ControllerInterface
,
mappingMethods
...
string
)
*
App
{
BeeApp
.
Router
(
rootpath
,
c
)
BeeApp
.
Router
(
rootpath
,
c
,
mappingMethods
...
)
return
BeeApp
return
BeeApp
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment