imperialwool commited on
Commit
57d80f0
1 Parent(s): 398212d

different func names

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -17,13 +17,13 @@ def ratelimit_handler(e): return render_template('ratelimit.html')
17
  @app.errorhandler(403)
18
  def forbidden_handler(e): return render_template('forbidden.html')
19
  @app.errorhandler(404)
20
- def ratelimit_handler(e): return render_template('notfound.html')
21
  @app.errorhandler(405)
22
- def ratelimit_handler(e): return render_template('methodnotallowed.html')
23
  @app.errorhandler(500)
24
- def ratelimit_handler(e): return render_template('intervalservererror.html')
25
  @app.errorhandler(502)
26
- def ratelimit_handler(e): return render_template('badgateway.html')
27
 
28
  #empty routes
29
  @app.route('/yt/api/v1', methods=['POST'])
 
17
  @app.errorhandler(403)
18
  def forbidden_handler(e): return render_template('forbidden.html')
19
  @app.errorhandler(404)
20
+ def notfound_handler(e): return render_template('notfound.html')
21
  @app.errorhandler(405)
22
+ def methodnotallowed_handler(e): return render_template('methodnotallowed.html')
23
  @app.errorhandler(500)
24
+ def internalservererror_handler(e): return render_template('intervalservererror.html')
25
  @app.errorhandler(502)
26
+ def badgateway_handler(e): return render_template('badgateway.html')
27
 
28
  #empty routes
29
  @app.route('/yt/api/v1', methods=['POST'])