Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
720a77c1
authored
2014-06-18 11:15:43 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
beego:rever docs
1 parent
b943b74f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
beego.go
docs.go
beego.go
View file @
720a77c
...
...
@@ -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 @
720a77c
...
...
@@ -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
Styling with
Markdown
is supported
Attach a file
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 post a comment