Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7743829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:38:06+00:00 2026-06-01T09:38:06+00:00

ok i got this problem. i have this routes: (code bit change) File:/home/dotcloud/current/config/routes.js exports.routes

  • 0

ok i got this problem.
i have this routes: (code bit change)
File:/home/dotcloud/current/config/routes.js

exports.routes = function (map) {

    // Generic routes. Add all your routes below this line
    // feel free to remove generic routes
        //map.all(':controller/:action');
 //   map.all(':controller/:action/:id');


        var sitesControllers = [
                "RequestSiteLogin",
                "IsValidSiteLogin",
                "HoldSiteLogin",
                "RequestSiteProfile",
                "LogoutSite",
                "RevalidState"
        ];
        map.namespace('/subdomain/Users/:id/SitesCotnrol/', function (site) {
            site.resources('sites',{only: sitesControllers},function (action) {
                action.post("RequestSiteLogin","SitesCotnrol/RequestSiteLogin#:id");
                action.post("IsValidSiteLogin","SitesCotnrol/IsValidSiteLogin#:id");
                action.post("HoldSiteLogin","SitesCotnrol/HoldSiteLogin#:id");
                action.post("RequestSiteProfile","SitesCotnrol/RequestSiteProfile#:id");
                action.post("LogoutSite","SitesCotnrol/LogoutSite#:id");
                action.post("RevalidState","SitesCotnrol/RevalidSite#:id");
            });
        });

        var adminControllers = [
                "AddSite",
                "RemoveSite",
                "HoldAllSites",
                "LogoutApplication",
                "UpdateApplicationSettings",
                "Echo"
        ];
        map.namespace('/subdomain/Applciation/Control',function (admin) {
        admin.resources('admin',{only: adminControllers},function (action) {
        action.post("AddSite","/subdomain/Application/Control/AddSite");
        action.post("RemoveSite","/subdomain/Application/Control/RemoveSite#:id");
        action.get("Echo","#echo");
        action.get("HoldAllSites","/subdomain/Application/Control/HoleAll");
        action.get("LogoutApplication","/subdomain/Application/Control/LogoutApplication");
        action.get("UpdateApplicationSettings","/subdomain/Application/Control/UpdateApplicationSettings");
    });
});
};

now the url i try start is this:
http://application.pmpdevelopmentfront.tk/control#echo
the error within the page the param ControlDomain is same as subdomain see https://github.com/WilsonPage/express-subdomain-handler
please dont sure what do here.

Update on the routes thu cli:

dotcloud@frontend-default-www-0:~/current$ ./node_modules/railway/bin/railway  routes
   info  - socket.io started
        _subdomain_User_SitesCotnrol_site_RequestSiteLogin POST   //subdomain/Users/:id/SitesCotnrol/sites/:site_id/RequestSiteLogin        /subdomain/Users/:id/SitesCotnrol/SitesCotnrol/RequestSiteLogin#:id
        _subdomain_User_SitesCotnrol_site_IsValidSiteLogin POST   //subdomain/Users/:id/SitesCotnrol/sites/:site_id/IsValidSiteLogin        /subdomain/Users/:id/SitesCotnrol/SitesCotnrol/IsValidSiteLogin#:id
           _subdomain_User_SitesCotnrol_site_HoldSiteLogin POST   //subdomain/Users/:id/SitesCotnrol/sites/:site_id/HoldSiteLogin           /subdomain/Users/:id/SitesCotnrol/SitesCotnrol/HoldSiteLogin#:id
      _subdomain_User_SitesCotnrol_site_RequestSiteProfile POST   //subdomain/Users/:id/SitesCotnrol/sites/:site_id/RequestSiteProfile      /subdomain/Users/:id/SitesCotnrol/SitesCotnrol/RequestSiteProfile#:id
              _subdomain_User_SitesCotnrol_site_LogoutSite POST   //subdomain/Users/:id/SitesCotnrol/sites/:site_id/LogoutSite              /subdomain/Users/:id/SitesCotnrol/SitesCotnrol/LogoutSite#:id
            _subdomain_User_SitesCotnrol_site_RevalidState POST   //subdomain/Users/:id/SitesCotnrol/sites/:site_id/RevalidState            /subdomain/Users/:id/SitesCotnrol/SitesCotnrol/RevalidSite#:id
                   _subdomain_Applciation_Control__AddSite POST   //subdomain/Applciation/Control/admin/:admin_id/AddSite                   /subdomain/Applciation/Control//subdomain/Application/Control/AddSite#undefined
                _subdomain_Applciation_Control__RemoveSite POST   //subdomain/Applciation/Control/admin/:admin_id/RemoveSite                /subdomain/Applciation/Control//subdomain/Application/Control/RemoveSite#:id
                      _subdomain_Applciation_Control__Echo GET    //subdomain/Applciation/Control/admin/:admin_id/Echo                      /subdomain/Applciation/Control/#echo
              _subdomain_Applciation_Control__HoldAllSites GET    //subdomain/Applciation/Control/admin/:admin_id/HoldAllSites              /subdomain/Applciation/Control//subdomain/Application/Control/HoleAll#undefined
         _subdomain_Applciation_Control__LogoutApplication GET    //subdomain/Applciation/Control/admin/:admin_id/LogoutApplication         /subdomain/Applciation/Control//subdomain/Application/Control/LogoutApplication#undefined
 _subdomain_Applciation_Control__UpdateApplicationSettings GET    //subdomain/Applciation/Control/admin/:admin_id/UpdateApplicationSettings /subdomain/Applciation/Control//subdomain/Application/Control/UpdateApplicationSettings#undefined
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:38:08+00:00Added an answer on June 1, 2026 at 9:38 am

    First of all, remove generic routes:

    // Generic routes. Add all your routes below this line
    // feel free to remove generic routes
    map.all(':controller/:action');
    map.all(':controller/:action/:id');
    

    Second thing you may miss: namespace. Try to debug your routes using CLI: railway routes

    And third: need to check your esh initialization (correct prefixes, hooking up admin namespace prefix correctly).

    BTW: subdomains looks like missing feature in current railway-routes implementation. Why not just add subdomain handling to this module and avoid additional code and dependencies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I' ve got a problem with Haskell. I have text file looking like this:
I got a config/routes.rb file like this: map.resources :categories, :shallow => true do |cat|
I'm getting crazy with this problem: I have got some Oracle SQL-Reports to redesign
I have odd problem: After starting server I got this error: undefined local variable
i have a problem while loading a UITableView on UITabBarController, i got this error
I have a simple problem with XML got from database. Now, this XML can
I have got a little problem using the CodeIgniter route function. I use the
I got this problem after deploying my web package to IIS: HTTP Error 500.19
Ive got this problem: Line 20 (LOOT_FromContainer(container) I need that to use as Invoke
I got this problem with AVAudioRecorder not working for me, at least from what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.