Category "routes"

Mikrotik routing between networks via l2tp

I have 2 Mikrotik routers: Home(static WAN IP): LAN - 192.168.30.1/24 VPN IP - 192.168.146.1 Office(Cloud): LAN - 192.168.20.1/24 VPN IP - 192.1

How to pass data from one component to another component in React.js?

I need help regarding the react code. I am displaying the tree view. Clicking on the tree nodes will open the component in the right. I am successfully able to

Symfony how to NOT route public folder

I have a Symfony web app. As per default, all site calls are routed by Symfony. However, when I want to call for example mysite.com/public/example.img and retre

What is your suggestion for defining this VOIP web-service?

What is your suggestion about defining routes for such a web-service? Input: called number call date Output: caller number call datetime call duration

How to call multiple routes sequentially without messing with body

I have something like the following: .from("direct:start") .to("direct:a") .to("direct:b") .to("direct:c"); The issue I have is direct:a modifies t

How do I configure OData to use a POST with /$query on an endpoint configured with ODataAttributeRouting? I'm getting a 404

This is a follow-up to OData AspNetCore support for long URLs useing $query is not working. OData 8.0.4 In startup, I have app.UseODataQueryRequest() My Control

Refuelling and optional nodes in a VRP

I am using the Google OR-Tools librairy for Python to solve a VRP problem.My problem is quite simple : It is a basic VRP problem where vehicles are "cleaning ve

Flutter: Generating routes with auto_route using a Class with named constructors instead of default constructor

I am trying to generate the router.gr.dart file using the auto_route package in flutter. My class has 3 named constructors: ProfilePage.a({ Key? key,

Ruby on Rails routes - Query parameter vs id

I'm trying to set a route that accepts a dynamic field. Restaurants have categories [:chinese, :fast_food, :french, :vegan] and the route restaurants/vegan allo

Laravel | Route not defined

I have a problem in my Route. I see this error: Route [utilizadores.editar] not defined The error occurs on the page when I try to update the data in my DB. M

Flutter: Autoroute : RouteGuard not working in AutoTabsScaffold

I am trying add auth guard for my AutoTabsScaffold [bottom nav] but it's not working, It's working in other navigation pages but not just inside my landing page

Express separate two routes that are only different by req.params

Hi I am trying to build a CRUD application to get items by name and location. Here are the two routes I have so far: app.get('/items/:name', function (req, res)

How "equals" in express-validator works?

I have to validate two fields are equals. In this case both passwords are the same. The problem it is that the "equals" from express-validator is not working. T

React Navigation V5 custom header + Typescript Error: custom property 'rightButtons' does not exist on type 'object' (router.params)

I create custom header: const header = ({ navigation, route, options, back }: NativeStackHeaderProps): React.ReactNode => { const buttons: HeaderRightBut

Putting brackets when calling methods from laravel model

My route looks like this: Route::get('/tags/post/{id}', function ($id){ $post = Post::find($id); foreach ($post->tags as $tag) { return

NGINX Setup to Match Proxy Middleware Configuration

I have the following setupProxy.js class that configures redirection for api calls to my server. const { createProxyMiddleware } = require("http-proxy-middlewar

RouteBuilder vs EndpointRoutBuilder in .Net

I am trying to learn behind the scene of Routing and I find out that WebApplication implements IEndpointRouteBuilder which allows it to define routes for exampl

React Router V6 shows blank page

I am facing a problem. I am trying to use React Router but it keeps showing me a blank page. Here is my code: App.js: import React from "react"; import { Browse

Google OR-Tools Pickup Delivery on graph structure

Being new to OR-Tools libraries I am unable to modify the existing code for my requirements. I'm trying to solve a routing problem based on a graph structure. R

Can't we include vars in gorilla subrouter pathprefix?

I'm trying to add a subrouter to my router code : router := mux.NewRouter() baseRouter := router.PathPrefix("/api/v1").Subrouter() managementRouter := baseRoute