Commit 24ddad6b authored by Felix Delattre's avatar Felix Delattre
Browse files

Moved JSON-RPC API endpoints to separate file

parent 38a41f43
Pipeline #25905 passed with stage
in 1 minute and 18 seconds
......@@ -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"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment