Atul Bhosale
|
b945d1f602
|
Run 'cargo fmt' to format code (#489)
|
2019-03-20 17:56:17 +01:00 |
|
Baptiste Gelez
|
e26a150164
|
Make Authorization optional for read routes
Only require it when reading draft articles.
|
2018-10-30 18:13:49 +01:00 |
|
Baptiste Gelez
|
28fbf35779
|
Use PhantomData intead of two Options useless for Authorization
And remove some warnings about unused parameters
|
2018-10-30 18:13:49 +01:00 |
|
Baptiste Gelez
|
31641b1ea1
|
New request guard: Authorization<Action, Scope>
Filter requests that don't have an API token authorized to read or write
a specific scope;
|
2018-10-30 18:13:49 +01:00 |
|