summaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-11-13 20:00:15 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2024-11-13 20:00:15 +0000
commitb7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6 (patch)
tree280a31f5887aafdaa200a2b5f4c05ff106d9e365 /src/routes
downloadcritch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.tar.gz
critch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.tar.bz2
critch-b7a2265e9b29d8fa09f84f5213ef7f8ed3045ca6.zip
initial commit
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/admin.rs11
-rw-r--r--src/routes/artists.rs21
-rw-r--r--src/routes/artworks.rs23
-rw-r--r--src/routes/artworks/comments.rs11
-rw-r--r--src/routes/mod.rs3
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;