add: journals base
add: avatar/banner upload endpoints
This commit is contained in:
parent
b3cac5f97a
commit
bb682add85
14 changed files with 323 additions and 22 deletions
|
@ -12,6 +12,14 @@ pub fn routes() -> Router {
|
|||
.route("/auth/register", post(auth::register_request))
|
||||
.route("/auth/login", post(auth::login_request))
|
||||
.route("/auth/logout", post(auth::logout_request))
|
||||
.route(
|
||||
"/auth/upload/avatar",
|
||||
post(auth::images::upload_avatar_request),
|
||||
)
|
||||
.route(
|
||||
"/auth/upload/banner",
|
||||
post(auth::images::upload_banner_request),
|
||||
)
|
||||
// profile
|
||||
.route(
|
||||
"/auth/profile/{id}/avatar",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue