add new routing/positioning api routes without any implementation
This commit is contained in:
parent
914ed018f0
commit
a7a40dcf04
2 changed files with 12 additions and 0 deletions
|
@ -42,6 +42,14 @@ ninja_api = c3navAPI(
|
|||
"name": "map",
|
||||
"description": "Common map endpoints",
|
||||
},
|
||||
{
|
||||
"name": "routing",
|
||||
"description": "Calculate routes",
|
||||
},
|
||||
{
|
||||
"name": "positioning",
|
||||
"description": "Determine your position",
|
||||
},
|
||||
{
|
||||
"name": "mapdata",
|
||||
"description": "Access the raw map data",
|
||||
|
|
|
@ -24,12 +24,16 @@ from c3nav.mapdata.utils.user import can_access_editor
|
|||
from c3nav.mesh.api import FirmwareViewSet
|
||||
from c3nav.mesh.newapi import mesh_api_router
|
||||
from c3nav.routing.api import RoutingViewSet
|
||||
from c3nav.routing.newapi.positioning import positioning_api_router
|
||||
from c3nav.routing.newapi.routing import routing_api_router
|
||||
|
||||
"""
|
||||
new API (v2)
|
||||
"""
|
||||
ninja_api.add_router("/auth/", auth_api_router)
|
||||
ninja_api.add_router("/map/", map_api_router)
|
||||
ninja_api.add_router("/routing/", routing_api_router)
|
||||
ninja_api.add_router("/positioning/", positioning_api_router)
|
||||
ninja_api.add_router("/mapdata/", mapdata_api_router)
|
||||
ninja_api.add_router("/mesh/", mesh_api_router)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue