mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Adding comment with the reason for doing this
This commit is contained in:
@@ -23,6 +23,7 @@ func (s *Server) handleRouteList(c *gin.Context) {
|
||||
name, ok := appName.(string)
|
||||
if exists && ok && name != "" {
|
||||
routes, err = s.Datastore.GetRoutesByApp(ctx, name, filter)
|
||||
// if there are no routes for the app, check if the app exists to return 404 if it does not
|
||||
if len(routes) == 0 {
|
||||
_, err = s.Datastore.GetApp(ctx, name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user