mirror of
https://git.alemi.dev/guestbook.rs.git
synced 2024-11-12 19:39:28 +01:00
chore: version bump, fix docs, push lockfile
This commit is contained in:
parent
7b7866b382
commit
a685765138
4 changed files with 3644 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
||||||
/target
|
/target
|
||||||
|
|
||||||
|
guestbook.db
|
||||||
|
|
3639
Cargo.lock
generated
Normal file
3639
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "guestbook"
|
name = "guestbook"
|
||||||
version = "0.2.0"
|
version = "0.3.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
|
@ -55,7 +55,7 @@ https://cdn.alemi.dev/guestbook/0.3.0.js
|
||||||
this provides a plain JS (+jsdoc! check type hints) module exporting one function to hook the automatic infinite scroll fetcher
|
this provides a plain JS (+jsdoc! check type hints) module exporting one function to hook the automatic infinite scroll fetcher
|
||||||
|
|
||||||
you can also manage things with your framework of choice, just `GET /api?offset=x&limit=y` to receive a list of public pages
|
you can also manage things with your framework of choice, just `GET /api?offset=x&limit=y` to receive a list of public pages
|
||||||
```typescript
|
```js
|
||||||
class GuestbookPage {
|
class GuestbookPage {
|
||||||
id: number
|
id: number
|
||||||
author: string
|
author: string
|
||||||
|
@ -68,7 +68,7 @@ class GuestbookPage {
|
||||||
```
|
```
|
||||||
|
|
||||||
inserting a new page can be done with either a `POST` (+form) or a `PUT` (+json) request on `/api` endpoint
|
inserting a new page can be done with either a `POST` (+form) or a `PUT` (+json) request on `/api` endpoint
|
||||||
```typescript
|
```js
|
||||||
class GuestbookInsertion {
|
class GuestbookInsertion {
|
||||||
body: string,
|
body: string,
|
||||||
author: string | undefined,
|
author: string | undefined,
|
||||||
|
|
Loading…
Reference in a new issue