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
b943b74f
authored
2014-06-18 11:09:47 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
beego:init GlobalDocApi
1 parent
67be7b53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
beego.go
docs.go
beego.go
View file @
b943b74
...
...
@@ -376,6 +376,10 @@ func initBeforeHttpRun() {
}
}
if
EnableDocs
{
GlobalDocApi
=
make
(
map
[
string
]
interface
{})
}
middleware
.
VERSION
=
VERSION
middleware
.
AppName
=
AppName
middleware
.
RegisterErrorHandler
()
...
...
docs.go
View file @
b943b74
...
...
@@ -8,12 +8,6 @@ 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