-
-
Save geekbuntu/884087 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
import web | |
from controllers import blog | |
urls = ( | |
'/blog', blog.app | |
) | |
app = web.application(urls, locals()) | |
if __name__ == "__main__": | |
app.run() |
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
import web | |
from controllers import categories | |
urls = ( | |
'/categories', categories.app, | |
) | |
app = web.application(urls, locals()) |
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
import web | |
urls = ( | |
'/index', "index", | |
) | |
class index: | |
def GET(self): | |
return "[GET] /blog/categories/index called" | |
app = web.application(urls, locals()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment