Last active
December 22, 2015 07:58
-
-
Save inlinestyle/6441248 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.all '/push/*', (request, response) -> | |
response.json 503, {} | |
app.get '/api/v2/user_messages', (request, response) -> | |
response.json 200, {messages: [{message_heading: 'Scheduled Maintenance', message_text: 'We are currently conducting maintenance'}]} # in-app messaging! | |
app.all '/api/*', (request, response) -> | |
response.json 503, {} | |
app.all '/*', (request, response) -> | |
response.setHeader 'Retry-After', '3600' | |
response.send 503, render503Page() # renders html for web 503 page |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment