Skip to content

Commit

Permalink
update routes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdnbrk committed Dec 26, 2024
1 parent bda373a commit ea75e78
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use App\Http\Controllers\api\ChartController;
use App\Http\Controllers\CollectionController;
use App\Http\Controllers\ContentController;
use App\Http\Controllers\DownloadController;
Expand All @@ -8,8 +9,6 @@
use App\Http\Controllers\PizzaNinjaController;
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\SearchController;
use App\Http\Resources\FloorPricesCollection;
use App\Models\FloorPrice;
use Illuminate\Support\Facades\Route;

Route::get('/', HomepageController::class)
Expand Down Expand Up @@ -52,22 +51,5 @@

Route::post('/search', SearchController::class)->name('search');

Route::get('/api/chart/pizza-pets', function () {
return new FloorPricesCollection(
FloorPrice::where('symbol', 'pizza-pets')
->take(1000)
->latest()
->get()
->reverse()
);
});

Route::get('/api/chart/pizza-ninjas', function () {
return new FloorPricesCollection(
FloorPrice::where('symbol', 'pizza-ninjas')
->take(1000)
->latest()
->get()
->reverse()
);
});
Route::get('/api/chart/pizza-pets', [ChartController::class, 'pizza_pets']);
Route::get('/api/chart/pizza-ninjas', [ChartController::class, 'pizza_ninjas']);

0 comments on commit ea75e78

Please sign in to comment.