diff options
author | 2024-11-13 20:00:15 +0000 | |
---|---|---|
committer | 2024-11-13 20:00:15 +0000 | |
commit | b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6 (patch) | |
tree | 280a31f5887aafdaa200a2b5f4c05ff106d9e365 /src/routes | |
download | critch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.tar.gz critch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.tar.bz2 critch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.zip |
initial commit
Diffstat (limited to 'src/routes')
-rw-r--r-- | src/routes/admin.rs | 11 | ||||
-rw-r--r-- | src/routes/artists.rs | 21 | ||||
-rw-r--r-- | src/routes/artworks.rs | 23 | ||||
-rw-r--r-- | src/routes/artworks/comments.rs | 11 | ||||
-rw-r--r-- | src/routes/mod.rs | 3 |
5 files changed, 69 insertions, 0 deletions
diff --git a/src/routes/admin.rs b/src/routes/admin.rs new file mode 100644 index 0000000..98cb954 --- /dev/null +++ b/src/routes/admin.rs @@ -0,0 +1,11 @@ +use poem::handler; + +#[handler] +pub async fn login() { + todo!() +} + +#[handler] +pub async fn get_login_form() { + todo!() +} diff --git a/src/routes/artists.rs b/src/routes/artists.rs new file mode 100644 index 0000000..79a2ab1 --- /dev/null +++ b/src/routes/artists.rs @@ -0,0 +1,21 @@ +use poem::handler; + +#[handler] +pub async fn post() { + todo!() +} + +#[handler] +pub async fn get() { + todo!() +} + +#[handler] +pub async fn put() { + todo!() +} + +#[handler] +pub async fn delete() { + todo!() +} diff --git a/src/routes/artworks.rs b/src/routes/artworks.rs new file mode 100644 index 0000000..556265f --- /dev/null +++ b/src/routes/artworks.rs @@ -0,0 +1,23 @@ +use poem::{handler, web::Path}; + +pub mod comments; + +#[handler] +pub async fn post() { + todo!() +} + +#[handler] +pub async fn get() { + todo!() +} + +#[handler] +pub async fn put() { + todo!() +} + +#[handler] +pub async fn delete() { + todo!() +} diff --git a/src/routes/artworks/comments.rs b/src/routes/artworks/comments.rs new file mode 100644 index 0000000..dfac733 --- /dev/null +++ b/src/routes/artworks/comments.rs @@ -0,0 +1,11 @@ +use poem::handler; + +#[handler] +pub async fn post() { + todo!() +} + +#[handler] +pub async fn delete() { + todo!() +} diff --git a/src/routes/mod.rs b/src/routes/mod.rs new file mode 100644 index 0000000..fe8e0d1 --- /dev/null +++ b/src/routes/mod.rs @@ -0,0 +1,3 @@ +pub mod admin; +pub mod artists; +pub mod artworks; |