feat: add howtoplay and about routes with placeholder templates
This commit is contained in:
@@ -7,6 +7,8 @@ import tornado.web
|
||||
from db import get_engine, get_session_factory, init_db
|
||||
from handlers.main import MainHandler
|
||||
from handlers.game import GameHandler
|
||||
from handlers.howtoplay import HowToPlayHandler
|
||||
from handlers.about import AboutHandler
|
||||
from handlers.api import (
|
||||
CategoriesHandler,
|
||||
NewGameHandler,
|
||||
@@ -22,6 +24,8 @@ def make_app(session_factory=None):
|
||||
[
|
||||
(r"/", MainHandler),
|
||||
(r"/game", GameHandler),
|
||||
(r"/howtoplay", HowToPlayHandler),
|
||||
(r"/about", AboutHandler),
|
||||
(r"/api/categories", CategoriesHandler),
|
||||
(r"/api/game/new", NewGameHandler),
|
||||
(r"/api/game/([^/]+)", GameStateHandler),
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import tornado.web
|
||||
|
||||
|
||||
class AboutHandler(tornado.web.RequestHandler):
|
||||
def get(self):
|
||||
self.render("about.html")
|
||||
@@ -0,0 +1,6 @@
|
||||
import tornado.web
|
||||
|
||||
|
||||
class HowToPlayHandler(tornado.web.RequestHandler):
|
||||
def get(self):
|
||||
self.render("howtoplay.html")
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Word Search — About{% end %}
|
||||
|
||||
{% block content %}
|
||||
<h2>About</h2>
|
||||
<p>About page coming soon.</p>
|
||||
{% end %}
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Word Search — How to Play{% end %}
|
||||
|
||||
{% block content %}
|
||||
<h2>How to Play</h2>
|
||||
<p>Instructions coming soon.</p>
|
||||
{% end %}
|
||||
Reference in New Issue
Block a user