Skip to content
Snippets Groups Projects
Verified Commit 4f744a38 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: try not to break things

parent 89fa7949
No related branches found
No related tags found
No related merge requests found
......@@ -35,11 +35,15 @@ func idFromString(s string) (uint64, error) {
}
func getShowID(c *gin.Context) (uint64, error) {
//// TODO: get rid of this when we remove the nested routes
//showID := c.Param("show-id")
//if showID == "" {
// showID = c.Query("showId")
//}
// TODO: get rid of this when we remove the nested routes
showID := c.Param("show-id")
if showID == "" {
showID = c.Query("showId")
}
if showID == "" {
return idFromString(showID)
}
// read the showId as JSON from the body and allow the body to be read again
var showId ShowId
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment