diff --git a/app/Http/Controllers/Api/CurrencyController.php b/app/Http/Controllers/Api/CurrencyController.php
new file mode 100644
index 00000000..c7bb1b13
--- /dev/null
+++ b/app/Http/Controllers/Api/CurrencyController.php
@@ -0,0 +1,17 @@
+ $this->id,
+ 'name' => $this->name,
+ 'symbol' => $this->symbol,
+ ];
+ }
+}
diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
index 726b41ec..630c77dd 100644
--- a/app/Providers/AppServiceProvider.php
+++ b/app/Providers/AppServiceProvider.php
@@ -4,6 +4,7 @@
use App\Helper;
use App\Models\Space;
+use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Support\ServiceProvider;
use Auth;
@@ -26,6 +27,8 @@ public function boot()
'versionNumber' => $versionNumber
]);
});
+
+ JsonResource::withoutWrapping();
}
public function register()
diff --git a/resources/assets/js/prototype/screens/Register.vue b/resources/assets/js/prototype/screens/Register.vue
index 97d89f4f..e31c986d 100644
--- a/resources/assets/js/prototype/screens/Register.vue
+++ b/resources/assets/js/prototype/screens/Register.vue
@@ -1,5 +1,18 @@
@@ -23,7 +36,11 @@
-
+
diff --git a/routes/api.php b/routes/api.php
index 8e54864d..5192827c 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -2,4 +2,4 @@
use Illuminate\Http\Request;
-//
+Route::get('/currencies', \App\Http\Controllers\Api\CurrencyController::class);