Created
November 29, 2022 11:24
-
-
Save petersirka/b2c838747155dc98465d3342064e0f0c 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
require('total4'); | |
CORS(); | |
ROUTE('POST /*', function() { | |
var self = this; | |
switch (self.url) { | |
case '/api/v1/ott-dummy/heartbeat/': | |
case '/api/v1/ott-dummy/view/': | |
self.plain('OK'); | |
break; | |
} | |
}); | |
ROUTE('#404', function() { | |
var self = this; | |
self.status = 405; | |
self.plain(self.req.method + ' is not allowed for the request.'); | |
}); | |
HTTP('release'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment