Commit 51684b4e authored by Daniel Ravi Negi's avatar Daniel Ravi Negi 🤙🏼
Browse files

Add jpeg, bmp to allowed contentTypes for upload

parent 7f111b45
......@@ -52,7 +52,7 @@ class CouponsBackendChannel extends ApplicationChannel {
router
.route('/upload')
///.link(() => Authorizer.bearer(authServer, scopes: ['admin']))
.link(() => Authorizer.bearer(authServer, scopes: ['admin']))
.link(() => UploadController());
router
......
......@@ -5,7 +5,11 @@ import '../coupons_backend.dart';
class UploadController extends ResourceController {
UploadController() {
acceptedContentTypes = [ContentType("image", "png")];
acceptedContentTypes = [
ContentType("image", "png"),
ContentType("image", "jpeg"),
ContentType("image", "bmp")
];
}
@Operation.get()
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment