Skip to content

Commit 318b0a2

Browse files
committed
More correct naming
1 parent c34a7d5 commit 318b0a2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

frameworks/Go/indigo/src/app.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (app *App) HandleDB(request *http.Request) *http.Response {
5757
return request.Respond().JSON(world)
5858
}
5959

60-
func (app *App) HandleQueries(request *http.Request) *http.Response {
60+
func (app *App) HandleQuery(request *http.Request) *http.Response {
6161
n, err := normalizeNumber(request.Params.Get("n"))
6262
if err != nil {
6363
return http.Error(request, err)
@@ -106,7 +106,7 @@ func (app *App) HandleUpdate(request *http.Request) *http.Response {
106106
return request.Respond().JSON(&worlds)
107107
}
108108

109-
func (app *App) HandleCachedWorlds(request *http.Request) *http.Response {
109+
func (app *App) HandleCachedQuery(request *http.Request) *http.Response {
110110
n, err := normalizeNumber(request.Params.Get("n"))
111111
if err != nil {
112112
return http.Error(request, err)
@@ -121,7 +121,7 @@ func (app *App) HandleCachedWorlds(request *http.Request) *http.Response {
121121
return request.Respond().JSON(&worlds)
122122
}
123123

124-
func (app *App) HandleFortunes(request *http.Request) *http.Response {
124+
func (app *App) HandleFortune(request *http.Request) *http.Response {
125125
fortunes, err := app.DB.GetFortunes(context.Background())
126126
if err != nil {
127127
return http.Error(request, err)

frameworks/Go/indigo/src/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ func main() {
3535

3636
router.Resource("/json").Get(app.HandleJSON)
3737
router.Resource("/db").Get(app.HandleDB)
38-
router.Resource("/query").Get(app.HandleQueries)
38+
router.Resource("/query").Get(app.HandleQuery)
3939
router.Resource("/update").Get(app.HandleUpdate)
40-
router.Resource("/cached-query").Get(app.HandleCachedWorlds)
41-
router.Resource("/fortune").Get(app.HandleFortunes)
40+
router.Resource("/cached-query").Get(app.HandleCachedQuery)
41+
router.Resource("/fortune").Get(app.HandleFortune)
4242
router.Resource("/plaintext").Get(app.HandlePlaintext)
4343

4444
err = indigo.New(":8080").Serve(router)

0 commit comments

Comments
 (0)