Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit dd33442

Browse files
committed
donw
1 parent d5e5a58 commit dd33442

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ lastupdate.tmp
22
logs/*
33
moduleab_server
44
routers/commentsRouter_moduleab_server_controllers.go
5+
swagger/
6+
cpu-*

‎conf/app.conf‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
appname = moduleab_server
22
httpport = 8080
3-
runmode = initdb
3+
runmode = dev
44
autorender = false
55
copyrequestbody = true
66
EnableDocs = true
7+
8+
EnableAdmin = true
9+
AdminHttpAddr = "localhost"
10+
AdminHttpPort = 8088
11+
712
enablexsrf = false
813
xsrfkey = 61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o
914
xsrfexpire = 3600

‎controllers/hosts.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type HostsController struct {
1313
beego.Controller
1414
}
1515

16-
// @Title registerHost
16+
// @Title createHost
1717
// @Description create Host
1818
// @Param body body models.Hosts true "body for host content"
1919
// @Success 201 {string} models.Hosts.Id

‎routers/router.go‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// @APIVersion 1.0.0
2-
// @Title ModulesAB API
3-
// @Description beego has a very cool tools to autogenerate documents for your API
4-
// @Contact [email protected]
5-
// @TermsOfServiceUrl http://beego.me/
6-
// @License Apache 2.0
7-
// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
2+
// @Title ModuleAB API
3+
// @Description ModuleAB server API
4+
// @Contact [email protected]
5+
// @License GPLv3
6+
// @LicenseUrl http://www.gnu.org/licenses/gpl-3.0.html
87
package routers
98

109
import (

0 commit comments

Comments
 (0)