Skip to content

Commit

Permalink
Modified quote, added an apostle because, well, I can.
Browse files Browse the repository at this point in the history
  • Loading branch information
Depado committed Jan 15, 2016
1 parent 79099c1 commit 80da3fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions jagon/jagon.go
Expand Up @@ -34,10 +34,13 @@ func Prophet(c *gin.Context) {
})
}

// Apostotles gives some information about the current apostotles.
func Apostotles(c *gin.Context) {
// Apostles gives some information about the current apostotles.
func Apostles(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"current": []gin.H{gin.H{"name": "Hekmon", "alive": true}},
"current": []gin.H{
gin.H{"name": "Hekmon", "alive": true, "location": "In a dark underground temple, accompanied by a dwarf, an elf and a Shiba Inu."},
gin.H{"name": "Thonain", "alive": true, "location": "In the back of a seedy, dark and smelly alley, right near a drunk's vomit from last night."},
},
})
}

Expand Down
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -37,7 +37,7 @@ func main() {
apir.POST("/confess", jagon.Confess)
apir.POST("/sacrifice", jagon.DoSacrifice)
apir.GET("/info/prophet", jagon.Prophet)
apir.GET("/info/apostles", jagon.Apostotles)
apir.GET("/info/apostles", jagon.Apostles)
}
r.Run(":" + strconv.Itoa(conf.C.Port))
}
2 changes: 1 addition & 1 deletion templates/index.html
Expand Up @@ -70,7 +70,7 @@ <h5 class="center">They tried the API !</h5>
</div>
<div class="col s12 m4">
<div class="card-panel light-blue">
<p class="white-text">“Thanks to the Jagon API, I could confess things that I never said to anyone ! Such a relief !”</p>
<p class="white-text">“Thanks to the Jagon API, I can now sacrifice things all day long and with great response time !”</p>
<p class="right-align white-text"><i>NK`</i></p>
</div>
</div>
Expand Down

2 comments on commit 80da3fe

@rdstach
Copy link
Contributor

@rdstach rdstach commented on 80da3fe Dec 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a possibility that someone could add an apostle?

@Depado
Copy link
Owner Author

@Depado Depado commented on 80da3fe Dec 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, simply create a pull request ;)

Please sign in to comment.