1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 19:39:57 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/webserver/WebServer API_ Get File.tid

26 lines
505 B
Plaintext
Raw Normal View History

2018-10-02 13:16:58 +00:00
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