Skip to content
Snippets Groups Projects
Commit d861521f authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"a75436" --> "a73435"

parent 9799de1a
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ pip3 install pip-tools
pip-compile --output-file=requirements.txt requirements.in
pip3 install -r requirements.txt
chown -R nobody.nogroup $PWD # openSUSE: chown -R nobody.nobody $PWD
deactivate
systemctl daemon-reload # if already exist
systemctl link $PWD/accessGitFS.service
......@@ -35,7 +36,7 @@ Returns a JSON file with an array of all date directories within the GitFS
mount area.
```
curl -s http://a75436:5017/accessGitFS/dates > theDates.json
curl -s http://a73435:5017/accessGitFS/dates > theDates.json
```
### accessGitFS/times/YYYY-mm-dd (GET)
......@@ -44,7 +45,7 @@ Returns a JSON file with an array of all time directories within the GitFS
mount area matching the specified date.
```
curl -s http://a75436:5017/accessGitFS/times/2020-02-05 > theTimes.json
curl -s http://a73435:5017/accessGitFS/times/2020-02-05 > theTimes.json
```
### accessGitFS/file/YYYY-mm-dd/HH-MM-SS-XXXXXXXXXX/xyz.json (GET)
......@@ -52,21 +53,21 @@ curl -s http://a75436:5017/accessGitFS/times/2020-02-05 > theTimes.json
Returns the version of a file with the specified commit date.
```
curl -s http://a75436:5017/accessGitFS/file/2020-02-05/09-49-04-9da869dfa9/000_SERVERS.json \
curl -s http://a73435:5017/accessGitFS/file/2020-02-05/09-49-04-9da869dfa9/000_SERVERS.json \
> 000_SERVERS.json
```
With pretty print:
```
curl -s http://a75436:5017/accessGitFS/file/2021-01-07/14-32-48-7696828dc3/000_SERVERS.json \
curl -s http://a73435:5017/accessGitFS/file/2021-01-07/14-32-48-7696828dc3/000_SERVERS.json \
| jq -M
```
or
```
curl -s http://a75436:5017/accessGitFS/file/2021-01-07/14-32-48-7696828dc3/000_SERVERS.json \
curl -s http://a73435:5017/accessGitFS/file/2021-01-07/14-32-48-7696828dc3/000_SERVERS.json \
| python3 -m json.tool
```
......@@ -75,7 +76,7 @@ curl -s http://a75436:5017/accessGitFS/file/2021-01-07/14-32-48-7696828dc3/000_S
Returns the version of the accessGitFS server.
```
curl -s http://a75436:5017/accessGitFS/version
curl -s http://a73435:5017/accessGitFS/version
```
RN (2021-01-07)
......
......@@ -2,8 +2,8 @@
import json
import os
from flask import Flask, jsonify, send_from_directory
from flask_cors import CORS
from flask import Flask, jsonify, request, send_from_directory
from flask_cors import CORS
from pprint import pprint
......@@ -14,7 +14,7 @@ gitfs_dir = config['gitfs_dir']
app = Flask(__name__, static_url_path='')
app.url_map.strict_slashes = False
CORS(app)
CORS(app)
def getDirs(root):
dirs = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment