feat: initial test static site with Deno backend
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Test Static Site
|
||||
|
||||
Test repository for Docker Watcher's Static Sites feature.
|
||||
|
||||
## Structure
|
||||
|
||||
```
|
||||
pages/
|
||||
├── index.html # Main page
|
||||
├── style.css # Styles
|
||||
├── app.js # Client-side JS
|
||||
└── api/
|
||||
├── time.ts # GET /api/time — server time
|
||||
├── hello.ts # GET /api/hello?name=X — greeting with env var
|
||||
└── echo.ts # POST /api/echo — echo request body
|
||||
```
|
||||
|
||||
## API Convention
|
||||
|
||||
Functions prefixed with `API_` are auto-routed:
|
||||
- `API_get` in `api/time.ts` → `GET /api/time`
|
||||
- `API_post` in `api/echo.ts` → `POST /api/echo`
|
||||
|
||||
## Environment Variables
|
||||
|
||||
- `GREETING_PREFIX` — custom greeting prefix (default: "Hello")
|
||||
Reference in New Issue
Block a user