Questions tagged [routes]
Questions about mapping URLs to Controllers and Actions.
routes
33,497
questions
0
votes
0
answers
42
views
what is the better way to add conditional routing in rails
I have to change the route in a way that I need to have the original route as well as change the path of the route in a env is available.
this is how I am thinking of doing
custom_org = ENV['...
-1
votes
0
answers
19
views
How to use subdomains and routing after Clerk authMiddleware() deprication?
I need to code this:
TypeScript
export default authMiddleware({
publicRoutes: ['/site', '/api/uploadthing'],
async beforeAuth(auth, req) {},
async afterAuth(auth, req) {
//rewrite for ...
0
votes
1
answer
41
views
Creating [slug].tsx in Next.js Page router
I am trying to develop an app in Next.js using the page router framework. So for each component I have page.tsx under relevant folder name. For a particular component I need to have slug for routing, ...
0
votes
1
answer
51
views
Issue with app.MapWhen() in .NET Core routing for multiple Angular projects
I have a technical issue with the app.MapWhen() method in .NET Core for handling routes in my application.
Context
I have two Angular v15 projects serving as front-ends for my .NET Core 6 application.
...
1
vote
2
answers
26
views
laravel new update, omits api.php and i can't use it
since the LARAVEL omits the API.PHP, when I define the routes, Route:: API Resource('students', Student Controller::class); and I access http://localhost:8000/api/students I get "The route API/...
0
votes
1
answer
43
views
Nextjs route handler set cookie not working
I am currently experiencing an issue with setting cookies in a Next.js 14 route handler. I have confirmed through console logs that the token is correctly included in the Set-Cookie header, but the ...
0
votes
0
answers
16
views
Ionic - How to pass URL params between tabs
in Ionic I have an app-routing module, which looks like that:
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes ...
0
votes
2
answers
49
views
Missing required parameter for update route laravel 11
I have an error
Missing required parameter for [Route: updatetransaksi] [URI: penjualan/update/{id}] [Missing parameter: id].
web code
route::get('/penjualan/edit/{id_penjualan}', [...
0
votes
1
answer
25
views
Raspberry Pi IP routing keeps adding default eth0 with metrics 100
I have a Raspberry Pi (latest version of x64 OS with desktop for Pi3 B+) with an apache2 webserver and it connects to a router via WiFi wlan0. It should be available through the Internet via a domain ...
0
votes
3
answers
42
views
Why is my router causing not to read the css?
I created a router from scratch. It's a simple router :
class Router {
private static array $routes;
public static function register($route = '/', $filename=''){
self::$routes[$route] ...
2
votes
1
answer
23
views
gin router 404 on url patterns with :id parameter
I am getting a 404 error from a URL pattern with a quite simple parameter in it.
I am using gin-gonic with golang.
Here is my main programme. I've removed all other routing to isolate the problem.
...
0
votes
0
answers
25
views
ASP.NET ignoring routes for specific .html pages
I am running my website on ASP.NET and MVC.
Here, I have set up my files as .html file and these gets routed to their respective Controller/actions accordingly.
Now for verification of my site on ...
0
votes
1
answer
25
views
Laravel my sorting filter doesn't work but i have no error or no messages
//my route
Route::get('catalogue/{categorie?}','App\Http\Controllers\CatalogueController@index')->name('catalogue');
//my function
function index($categorie = null )
{
if($categorie)
...
0
votes
0
answers
28
views
Customizing Error Responses for Non-Existent Resource IDs in API Platform
I'm using API Platform in my Symfony application and encountering an issue with the automatic Get() route when searching for a resource that doesn't exist. Currently, API Platform returns a default ...
0
votes
1
answer
35
views
Laravel : i have this message "page not found" without any error
//my route
Route::get('catalogue/{categorie?}','App\Http\Controllers\CatalogueController@index')->name('catalogue');
//my controller
namespace App\Http\Controllers;
use Illuminate\Http\Request;
...