1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-15 12:40:28 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/webserver/WebServer API_ Get File.tid
2018-10-02 14:16:58 +01:00

26 lines
505 B
Plaintext

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