mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-17 14:33:27 +02:00
Added plain text (gemtext like) templates
This commit is contained in:
25
templates/base.txt
Normal file
25
templates/base.txt
Normal file
@ -0,0 +1,25 @@
|
||||
{%- block content %}
|
||||
Greetings from the base template!
|
||||
{% endblock -%}
|
||||
|
||||
{%- block json_notice %}
|
||||
You can get the json version:
|
||||
=> {{ extra.base_url }}/{% block path %}{% endblock %}?format=json
|
||||
{% endblock -%}
|
||||
|
||||
{%- if view == "404" %}
|
||||
## Usage
|
||||
|
||||
You can query this service using the folowing endpoints …
|
||||
=> {{ extra.base_url }}/ip/<address> … to query for an ip-address
|
||||
=> {{ extra.base_url }}/dig/<name> … to query for a domain-name
|
||||
=> {{ extra.base_url }}/ua … to get your user agent
|
||||
|
||||
## About
|
||||
|
||||
You can find the echoip-slatecave sourcecode on Codeberg.
|
||||
=> https://codeberg.org/slatian/service.echoip-slatecave
|
||||
If you found a bug or have an idea, feature, etc. please get in touch (I also accept E-Mails!).
|
||||
|
||||
This service works in its current form because nobody is abusing it, please keep that in mind. If you want to do frequent automated requests please host your own instace. Thank you for being awesome!
|
||||
{% endif %}
|
Reference in New Issue
Block a user