Open fernando-s97 opened 3 years ago
I have the following routes
router ..route("/graduates/auth/token").link(() => AuthController(authServer)) ..route("/graduates[/:username]") .link(() => Authorizer.bearer(authServer)) .link(() => GraduateController(context, authServer));
The GraduateController handles both GET and POST operations.
GraduateController
How can I make the Authorizer "only works when the operation is GET"? I want to be able to fetch specific data only with authentication, but I want to allow anyone to add data.
Authorizer
+1
I have the following routes
The
GraduateController
handles both GET and POST operations.How can I make the
Authorizer
"only works when the operation is GET"? I want to be able to fetch specific data only with authentication, but I want to allow anyone to add data.