Streamline routing

- put openapi doc behind `api/doc` instead of `app/doc`
- don't require `index.html` for the webapp
This commit is contained in:
Eike Kettner
2019-12-30 21:59:06 +01:00
parent fc3e22e399
commit b15b9cc217
8 changed files with 33 additions and 21 deletions

View File

@ -45,7 +45,7 @@ server. If it is deployed at `http://localhost:7880`, then check this
url:
```
http://localhost:7880/app/doc
http://localhost:7880/api/doc
```
## Examples

View File

@ -150,8 +150,8 @@ $ ./docspell-joex*/bin/docspell-joex /path/to/joex-config.conf
```
After starting the rest server, you can reach the web application at
path `/app/index.html`, so using default values it would be
`http://localhost:7880/app/index.html`.
path `/app`, so using default values it would be
`http://localhost:7880/app`.
You should be able to create a new account and sign in. Check the
[configuration page](configure.html) to further customize docspell.

View File

@ -53,7 +53,7 @@ Example screenshot:
This example shows a source with name "test". It defines two urls:
- `/app/index.html#/upload/<id>`
- `/app#/upload/<id>`
- `/api/v1/open/upload/item/<id>`
The first points to a web page where everyone could upload files into

View File

@ -42,7 +42,7 @@ really required, but improves OCR.
$ ./docspell-joex*/bin/docspell-joex
```
in the other.
4. Point your browser to: <http://localhost:7880/app/index.html>
4. Point your browser to: <http://localhost:7880/app>
5. Register a new account, sign in and try it.
Check the [documentation](doc.html) for more information on how to use