Add the data routes to the route table
This commit is contained in:
1 parent
6648fe6cde
commit
a2d615245c
1 file changed
+14
@@ -58,6 +58,20 @@ ROUTES = (
|
||||
("POST", r"^/api/auth/login$", "auth_login"),
|
||||
("POST", r"^/api/auth/logout$", "auth_logout"),
|
||||
("POST", r"^/api/auth/password$", "auth_password"),
|
||||
("GET", r"^/api/markets$", "markets_list"),
|
||||
("POST", r"^/api/markets$", "markets_create"),
|
||||
("PATCH", r"^/api/markets/(?P<id>\d+)$", "markets_update"),
|
||||
("DELETE", r"^/api/markets/(?P<id>\d+)$", "markets_delete"),
|
||||
("GET", r"^/api/transactions$", "transactions_list"),
|
||||
("POST", r"^/api/transactions$", "transactions_create"),
|
||||
("GET", r"^/api/transactions/(?P<id>\d+)$", "transactions_get"),
|
||||
("PATCH", r"^/api/transactions/(?P<id>\d+)$", "transactions_update"),
|
||||
("DELETE", r"^/api/transactions/(?P<id>\d+)$", "transactions_delete"),
|
||||
("GET", r"^/api/lots$", "lots_list"),
|
||||
("GET", r"^/api/prices$", "prices_list"),
|
||||
("PUT", r"^/api/prices/(?P<date>\d{4}-\d{2}-\d{2})$", "prices_put"),
|
||||
("GET", r"^/api/settings$", "settings_get"),
|
||||
("PATCH", r"^/api/settings$", "settings_patch"),
|
||||
)
|
||||
|
||||
# Routes that answer without a session. The rest need one, and every mutating
|
||||
|
||||
Reference in new issue
Block a user