-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathroute.py
39 lines (37 loc) · 1.05 KB
/
route.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- coding: utf-8 -*-
from twisted.web.static import File
from resource.admin import Admin
from resource.article import ArticleParent
from resource.board import Board
from resource.chat import Chat
from resource.hello import Hello
from resource.index import Index
from resource.login import Login
from resource.logout import Logout
from resource.new import New
from resource.page import Page
from resource.profile import Profile
from resource.register import Register
from resource.reply import ReplyParent
from resource.search import Search
from resource.welcome import Welcome
ROUTE = {
"": Index(),
"admin": Admin(),
"article": ArticleParent(),
"board": Board(),
"chat": Chat(),
"hello": Hello(),
"login": Login(),
"logout": Logout(),
"favicon.ico": File("config/favicon.png"),
"new": New(),
"profile": Profile(),
"page": Page(),
"register": Register(),
"reply": ReplyParent(),
"robots.txt": File("static/etc/robots.txt"),
"static": File("static"),
"search": Search(),
"welcome": Welcome(),
}