-
Notifications
You must be signed in to change notification settings - Fork 0
/
apphandlers.py
44 lines (37 loc) · 1.12 KB
/
apphandlers.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
40
41
42
43
44
"""apphandlers.py: Sets up the application handlers"""
__author__ = "Tom Hanson"
__copyright__ = "Copyright 2014"
__credits__ = ["Tom Hanson"]
__license__ = "GPL"
__maintainer__ = "Tom Hanson"
__email__ = "tom@aporcupine.com"
from handlers import notfoundhandler
from handlers import devicecontrol
from handlers import settings
from handlers import api
from modules import customframework
app = customframework.WSGIApplication([
devicecontrol.DeviceSelectionHandler,
devicecontrol.DeviceMainPage,
devicecontrol.DeviceArtists,
devicecontrol.DeviceAlbums,
devicecontrol.DeviceArtist,
devicecontrol.DeviceSongs,
devicecontrol.PartyMainPage,
devicecontrol.PartyArtists,
devicecontrol.PartyAlbums,
devicecontrol.PartyArtist,
devicecontrol.PartySongs,
devicecontrol.DeviceActionHandler,
devicecontrol.DevicePlayHandler,
devicecontrol.DeviceUpdateHandler,
settings.SettingsHandler,
settings.SetupGroupHandler,
api.SystemEnrollHandler,
api.CheckEnrollHandler,
api.DeviceEnrollHandler,
api.GroupUpdateHandler,
api.LibraryUpdateHandler,
# 404 handler
notfoundhandler.HandleNotFound
], debug=True)