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
720a77c1
Commit
720a77c1
authored
Jun 18, 2014
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beego:rever docs
parent
b943b74f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
beego.go
beego.go
+0
-4
docs.go
docs.go
+6
-0
No files found.
beego.go
View file @
720a77c1
...
...
@@ -376,10 +376,6 @@ func initBeforeHttpRun() {
}
}
if
EnableDocs
{
GlobalDocApi
=
make
(
map
[
string
]
interface
{})
}
middleware
.
VERSION
=
VERSION
middleware
.
AppName
=
AppName
middleware
.
RegisterErrorHandler
()
...
...
docs.go
View file @
720a77c1
...
...
@@ -8,6 +8,12 @@ import (
var
GlobalDocApi
map
[
string
]
interface
{}
func
init
()
{
if
EnableDocs
{
GlobalDocApi
=
make
(
map
[
string
]
interface
{})
}
}
func
serverDocs
(
ctx
*
context
.
Context
)
{
var
obj
interface
{}
if
splat
:=
ctx
.
Input
.
Param
(
":splat"
);
splat
==
""
{
...
...
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