Exemplo n.º 1
0
Arquivo: route.py Projeto: EIDA/eidaws
def setup_routes(app, static=False):

    routes = [web.view(FED_WFCATALOG_PATH_QUERY, WFCatalogView)]
    if static:
        path_static = pathlib.Path(__file__).parent / FED_STATIC
        append_static_routes(app, routes, FED_WFCATALOG_PATH_JSON, path_static)

    app.add_routes(routes)
Exemplo n.º 2
0
def setup_routes(app, static=False):

    routes = [web.view(FED_DATASELECT_PATH_QUERY, DataselectView)]
    if static:
        path_static = pathlib.Path(__file__).parent / FED_STATIC
        append_static_routes(
            app, routes, FED_DATASELECT_PATH_MINISEED, path_static
        )

    app.add_routes(routes)
Exemplo n.º 3
0
def setup_routes(app, static=False):

    routes = [web.view(FED_STATION_TEXT_PATH_QUERY, StationView)]
    if static:
        path_static = pathlib.Path(__file__).parent / FED_STATIC
        append_static_routes(
            app,
            routes,
            FED_STATION_PATH_TEXT,
            path_static,
            follow_symlinks=True,
        )

    app.add_routes(routes)
Exemplo n.º 4
0
def setup_routes(app, static=False):

    routes = [
        web.view(FED_AVAILABILITY_GEOCSV_PATH_QUERY, AvailabilityQueryView),
        web.view(FED_AVAILABILITY_GEOCSV_PATH_EXTENT, AvailabilityExtentView),
    ]
    if static:
        path_static = pathlib.Path(__file__).parent / FED_STATIC
        append_static_routes(
            app,
            routes,
            FED_AVAILABILITY_PATH_GEOCSV,
            path_static,
            follow_symlinks=True,
        )

    app.add_routes(routes)