2018-04-18 16:46:53 -04:00
|
|
|
from master import api
|
|
|
|
|
|
|
|
from master.resources.null import Null
|
|
|
|
from master.resources.instance import Instance
|
|
|
|
from master.resources.authenticate import Authenticate
|
2018-04-19 01:48:14 -04:00
|
|
|
from master.resources.version import Version
|
2018-04-21 18:18:20 -04:00
|
|
|
from master.resources.history_graph import HistoryGraph
|
2018-05-08 00:58:46 -04:00
|
|
|
from master.resources.localization import Localization
|
2018-09-29 15:52:22 -04:00
|
|
|
from master.resources.server import Server
|
2018-04-18 16:46:53 -04:00
|
|
|
|
|
|
|
api.add_resource(Null, '/null')
|
|
|
|
api.add_resource(Instance, '/instance/', '/instance/<string:id>')
|
2018-04-19 01:48:14 -04:00
|
|
|
api.add_resource(Version, '/version')
|
2018-04-21 18:18:20 -04:00
|
|
|
api.add_resource(Authenticate, '/authenticate')
|
2018-05-08 00:58:46 -04:00
|
|
|
api.add_resource(HistoryGraph, '/history/', '/history/<int:history_count>')
|
2018-09-29 15:52:22 -04:00
|
|
|
api.add_resource(Localization, '/localization/', '/localization/<string:language_tag>')
|
|
|
|
api.add_resource(Server, '/server')
|