mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 06:14:38 +00:00
Finish web server API docs
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
created: 20181002123907518
|
||||
modified: 20181002124345482
|
||||
tags: [[WebServer API]]
|
||||
title: WebServer API: Get File
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
Get the content of a static file. See
|
||||
[[using the integrated static file server|Using the integrated static file server]]
|
||||
|
||||
```
|
||||
GET /files/<pathname>
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
* ''pathname'' - URI encoded path to the file
|
||||
|
||||
Response:
|
||||
|
||||
* 200 OK
|
||||
*> `Content-Type: <content-type>` (determined from file extension)
|
||||
*> Body: data retrieved from file
|
||||
* 403 Forbidden
|
||||
* 404 Not Found
|
||||
|
||||
Reference in New Issue
Block a user