Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Merge 4fcaaaa into f456490
Browse files Browse the repository at this point in the history
  • Loading branch information
radkomateusz committed Aug 17, 2018
2 parents f456490 + 4fcaaaa commit 958082c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ handlers:
secure: always
login: admin
- url: /_ah/start
script: src.main.app
script: src.restore.restore_ui_handler.app
secure: always
login: admin
- url: /favicon.ico
static_files: static/images/favicon.ico
upload: static/images/favicon.ico
application_readable: true
- url: /.*
script: src.main.app
script: src.restore.restore_ui_handler.app
secure: always
login: admin
7 changes: 6 additions & 1 deletion slo-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ handlers:
static_files: static/images/favicon.ico
upload: static/images/favicon.ico
application_readable: true
- url: /cron/slo/calculate
script: src.slo.slo_handlers.app
secure: always
login: admin
- url: /.*
script: src.slo.main.app
script: src.slo.slo_ui_handlers.app
secure: always
login: admin

16 changes: 16 additions & 0 deletions src/slo/slo_handlers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import logging

import webapp2

from src.commons.config.configuration import configuration


class XDaysSLIHandler(webapp2.RequestHandler):

def get(self):
logging.info("TODO Recalculating SLI has been started.")


app = webapp2.WSGIApplication([
('/cron/slo/calculate', XDaysSLIHandler)
], debug=configuration.debug_mode)
6 changes: 3 additions & 3 deletions src/slo/main.py → src/slo/slo_ui_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
from src.commons.config.configuration import configuration


class MainSloPage(BaseHandler):
class MainPageHandler(BaseHandler):
def get(self):
self.render_response('index_slo.html')


app = webapp2.WSGIApplication([
('/', MainSloPage),
('/_ah/start', MainSloPage),
('/', MainPageHandler),
('/_ah/start', MainPageHandler)
], debug=configuration.debug_mode)

0 comments on commit 958082c

Please sign in to comment.