fix: websocket
This commit is contained in:
parent
7e442e6a7e
commit
3981aaa331
@ -1,5 +1,5 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen 7003;
|
||||
server_name _;
|
||||
root /var/www/arcos-backend/public;
|
||||
index index.php index.html;
|
||||
|
||||
@ -77,7 +77,7 @@ public function index(Request $request)
|
||||
* Ver una alerta específica
|
||||
* GET /api/alertas/{id}
|
||||
*/
|
||||
public function show(int $id)
|
||||
public function show(string $id)
|
||||
{
|
||||
$alerta = AlertaRobo::with(['arco', 'usuario'])->find($id);
|
||||
|
||||
@ -98,7 +98,7 @@ public function show(int $id)
|
||||
* Confirmar/marcar alerta como vista
|
||||
* PUT /api/alertas/{id}/confirmar
|
||||
*/
|
||||
public function confirmar(Request $request, int $id)
|
||||
public function confirmar(Request $request, string $id)
|
||||
{
|
||||
$alerta = AlertaRobo::find($id);
|
||||
|
||||
|
||||
@ -14,7 +14,6 @@ services:
|
||||
- DB_DATABASE=${DB_DATABASE}
|
||||
- DB_PORT=${DB_PORT}
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "8083:8080"
|
||||
volumes:
|
||||
- ./:/var/www/arcos-backend
|
||||
@ -29,7 +28,7 @@ services:
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "${NGINX_PORT}:80"
|
||||
- "${NGINX_PORT}:7003"
|
||||
volumes:
|
||||
- ./public:/var/www/arcos-backend/public
|
||||
- ./storage:/var/www/arcos-backend/storage
|
||||
|
||||
@ -40,7 +40,7 @@ RUN apk add --no-cache shadow && \
|
||||
usermod -u ${USER_ID} www-data && \
|
||||
groupmod -g ${GROUP_ID} www-data
|
||||
|
||||
EXPOSE 9000
|
||||
EXPOSE 7003
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint-dev.sh"]
|
||||
CMD ["php-fpm"]
|
||||
|
||||
@ -44,9 +44,9 @@
|
||||
Route::get('/arcos/{id}/detecciones/dia', [ArcoController::class, 'deteccionesDelDia']);
|
||||
|
||||
//alerta
|
||||
Route::get('/alertas/pendientes', [AlertaRoboController::class, 'pendientes']);
|
||||
Route::get('/alertas', [AlertaRoboController::class, 'index']);
|
||||
Route::get('/alertas/{id}', [AlertaRoboController::class, 'show']);
|
||||
Route::get('/alertas/pendientes', [AlertaRoboController::class, 'pendientes']);
|
||||
Route::put('/alertas/{id}/confirmar', [AlertaRoboController::class, 'confirmar']);
|
||||
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user