Skip to content
Snippets Groups Projects
Commit 24ddad6b authored by Felix Delattre's avatar Felix Delattre
Browse files

Moved JSON-RPC API endpoints to separate file

parent 38a41f43
No related branches found
No related tags found
No related merge requests found
Pipeline #25905 passed
......@@ -38,7 +38,5 @@ app.route(
],
)(app.api.handler)
@app.api.add_function
async def ping():
return "pong"
# Load JSON-RPC API endpoints from separate file
import obmdataapi.endpoints # noqa
#!/usr/bin/env python3
# Copyright (C) 2021:
# Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
from obmdataapi import app
# JSON-RPC API endpoints
@app.api.add_function
async def ping():
return "pong"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment