fixes
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -3,7 +3,7 @@ use std::marker::PhantomData;
|
||||
use crate::{ContentType, Endpoint, GdprCommissioners, GdprConsents};
|
||||
|
||||
pub const SEND_GDPR_OBJECTION_ENDPOINT: Endpoint<(), String> = Endpoint::Post {
|
||||
url: "/api/3/payments/classfund/paymentsinfo",
|
||||
url: "/api/3/gdpr/commissioner/send-objection",
|
||||
auth: true,
|
||||
content_type: ContentType::Json,
|
||||
_types: PhantomData,
|
||||
|
||||
@@ -11,14 +11,14 @@ pub const HOMEWORKS_COUNT_ENDPOINT: Endpoint<i64, ()> = Endpoint::Get {
|
||||
/// ID = homework ID (String)
|
||||
/// finished = homework state (bool)
|
||||
pub const HOMEWORK_DONE_ENDPOINT: Endpoint<bool, ()> = Endpoint::Get {
|
||||
url: "api/3/homeworks/{id}/student-done/{finished}",
|
||||
url: "/api/3/homeworks/{id}/student-done/{finished}",
|
||||
auth: true,
|
||||
_types: PhantomData,
|
||||
};
|
||||
|
||||
/// Query 'from' and 'to' (Datetime)
|
||||
pub const HOMEWORKS_ENDPOINT: Endpoint<HomeworkList, ()> = Endpoint::Get {
|
||||
url: "api/3/homeworks",
|
||||
url: "/api/3/homeworks",
|
||||
auth: true,
|
||||
_types: PhantomData,
|
||||
};
|
||||
Reference in new issue
Block a user