33,399 questions
-1
votes
1
answer
80
views
using server actions with route handlers when making NextJS API endpoints
I have a web app that needs to expose APIs for mobile app (GET, POST, PUT AND DELETE endpoints), currently i'm doing the fetch in both client and server components, but i looked at the client ...
0
votes
0
answers
55
views
Routing issues between OpenVPN and LAN in OpenWRT
I am trying to set up routing between an OpenVPN network (10.8.0.0/24) and a LAN network (10.10.10.0/24) on OpenWRT. I have an OpenVPN server with the configuration:
Configuration of the OpenVPN ...
1
vote
0
answers
62
views
Solving vehicle's loading and routing problem together
I am struggling with modeling the following problem:
I have a list of vehicles with known capacity
I have a list of boxes that has to be loaded onto a vehicle, each vehicle has known size that ...
1
vote
1
answer
52
views
Global Angular Route Animation without Data property?
I am working on a corporate Angular web application and am creating a proof of concept to add an "ease-out/ease-in" transition animation to all route changes. I've followed the Angular ...
0
votes
0
answers
15
views
Symfony 7 301 redirect in routes.yaml does not work
Preparing a 301 redirect should be straightforward, but for some reason, I cannot get the reroute to trigger properly. I am trying to reroute "/some-old-path" to "/some-new-path" ...
0
votes
0
answers
23
views
How can I create routing Keys in Rabbit MQ with Not Equals, AND, OR and Equals?
I went through Rabbit MQ documentation on routing keys. I see that there are only operators * and # to define a routing key.
I have about 10,000 users whose birthday notifications are to be processed. ...
0
votes
0
answers
70
views
Error: The default export is not a React Component in "/page"
I am getting this error after I moved my page.tsx from app directory to the group route that I created in the same app directory. The reason why I moved this home page to group route because I want to ...
1
vote
1
answer
103
views
Prevent navigation between microfrontends in single-spa-angular
I'm new to the world of microfrontends and I'm facing an issue.
I have an application with a microfrontend architecture, and I'm using single-spa-angular to mount and unmount my apps when needed.
Here'...
-1
votes
3
answers
151
views
laravel 11 : resource route doesn't work the same way when it's detailed in some route lines
laravel 11 here
in web.php
Route::resource('event', EventController::class);
works ok
when i replace this line by
Route::get('/event', [EventController::class, 'index'])->name('event.index');
...
0
votes
1
answer
129
views
Laravel route of Route::get(".well-known/acme ..." not served
I'm trying to validate a server for Let's Encrypt.
Route::get(".well-known/acme-challenge/72kwJd49Bnm200zClrljFuKM4Kg4WGTxeYL_Q106Guk", function() {
return Response::make('...
0
votes
1
answer
87
views
TYPO3 12 with SOLR - readable URL
One of my IndexQueues looks like this
plugin.tx_solr.index.queue {
pressphotos = 1
pressphotos {
type = tx_company_z_pressphotos
label = myPressphotosLabel
fields {
...
0
votes
1
answer
81
views
How to prevent that super admin’s credentials can be used to log in as a tenant?
I am using Laravel Jetstream for authentication, which provides login and registration functionality that redirects users to the dashboard.
Currently, in my web.php file, I have set up routes with ...
0
votes
0
answers
208
views
Angular Routing and nginx Configuration – Direct URL Access Returns 404
I'm hosting multiple Angular applications on a Windows machine using nginx. I have a landing page (index.html) that lets me choose between two Angular projects—protocolviewer and conficviewer—which ...
0
votes
0
answers
54
views
Angular route doesn't render if pasting url directly or refreshing the page
I'm making a pastebin-like client on Angular 18 and so far the interface works great.
Only issue is that refreshing the page or trying to directly enter the website via the full url (very important ...
0
votes
0
answers
156
views
Controller and Routing Issues in a custom module in Drupal 10
I am getting a page not found error message when trying to create a Controller and Route in Drupal 10. I am working with the Acquia Drupal Module Development course. I have created the module and ...
1
vote
1
answer
68
views
middleware for authorization to perform certain actions
I have implemented an API that is protected by JWT authorization layer. So on each endpoint before calling it I check that the user has a valid token before proceeding. It works flawlessly.
Now I want ...
0
votes
0
answers
60
views
Vercel NextJS: How can I redefine the route of 404 error page
On NextJS (deployed in Vercel), by default, the 404 error page is .com/404. I need to change it to .com/errors/404.
I've tried reading the docs (https://vercel.com/guides/custom-404-page) and even ...
0
votes
1
answer
128
views
vite react page not found (Cannot GET /mypage) after assembling the build and redirect on page using address bar
Reproduction:
npm create vite@latest
choose: react
choose: typescript
cd vite-project
npm install
npm i react-router-dom
App.tsx:
import { Routes, Route, BrowserRouter } from 'react-router-dom';
...
0
votes
2
answers
457
views
Blazor Web App 9 (Server / Gloabl) JWT Authentication
I am trying to implement JWT auth on a Blazor App 9 (using Server interactivity) but I can't seem to get app to route to the Login page when the user first starts the app. The Index has an [Authorize] ...
0
votes
0
answers
69
views
How to generate page routes automatically based on "/pages" folder?
I am building an SPA with Nuxt and from the documentation I got the idea that all *.vue files under /pages folder will be automatically used to generate routes. When I run my app locally the routing ...
0
votes
3
answers
92
views
In Rails, is it possible to intercept a request to a mounted app?
I have a Rails app which uses Sidekiq (6.5.12).
Sidekiq is mounted using the following code in routes.rb.
mount Sidekiq::Web => '/sidekiq'
I would like to do something specific anytime a user goes ...
1
vote
1
answer
31
views
npm run build getting error an Next JS app for dynamic routing v15.1.4
enter image description here
When I run npm run build getting error.
This is my app/test/[id]/page.tsx
export const generateStaticParams = async () => {
// Fetch data from an API
const res = ...
1
vote
0
answers
89
views
Why is my Node.js server returning a 404 error for valid routes? [duplicate]
I am building a Node.js server using Express, and I have defined a couple of routes like this:
const express = require('express');
const app = express();
app.get('/api', (req, res) => {
res.send(...
3
votes
1
answer
249
views
Service not found the container inside "\ServiceLocator" is a smaller service locator that only knows about the "kernel"
Because I want my applications to follow some kind of DDD structure, I want my Controller, Entity, Repository, Form etc to sit within a specific directory. For example: src/Appication/Dealer/...
0
votes
0
answers
68
views
Routing with a suffix on the controller name
Given one or more controllers (within Areas), named for example CustomerController and OrderController, I would like to be able to route to them using either of the following at interchangeably...
/...